mirror of
https://github.com/LukeHagar/plexterraform.git
synced 2025-12-09 20:47:45 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.215.1
This commit is contained in:
278
internal/sdk/models/operations/addplaylistcontents.go
Normal file
278
internal/sdk/models/operations/addplaylistcontents.go
Normal file
@@ -0,0 +1,278 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type AddPlaylistContentsRequest struct {
|
||||
// the ID of the playlist
|
||||
PlaylistID float64 `pathParam:"style=simple,explode=false,name=playlistID"`
|
||||
// the content URI for the playlist
|
||||
URI string `queryParam:"style=form,explode=true,name=uri"`
|
||||
// the play queue to add to a playlist
|
||||
PlayQueueID *float64 `queryParam:"style=form,explode=true,name=playQueueID"`
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsRequest) GetPlaylistID() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.PlaylistID
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsRequest) GetURI() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.URI
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsRequest) GetPlayQueueID() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.PlayQueueID
|
||||
}
|
||||
|
||||
type AddPlaylistContentsErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// AddPlaylistContentsPlaylistsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type AddPlaylistContentsPlaylistsResponseBody struct {
|
||||
Errors []AddPlaylistContentsErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsPlaylistsResponseBody) GetErrors() []AddPlaylistContentsErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type AddPlaylistContentsMetadata struct {
|
||||
RatingKey *string `json:"ratingKey,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
GUID *string `json:"guid,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
Summary *string `json:"summary,omitempty"`
|
||||
Smart *bool `json:"smart,omitempty"`
|
||||
PlaylistType *string `json:"playlistType,omitempty"`
|
||||
Composite *string `json:"composite,omitempty"`
|
||||
Duration *int `json:"duration,omitempty"`
|
||||
LeafCount *int `json:"leafCount,omitempty"`
|
||||
AddedAt *int `json:"addedAt,omitempty"`
|
||||
UpdatedAt *int `json:"updatedAt,omitempty"`
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsMetadata) GetRatingKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RatingKey
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsMetadata) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsMetadata) GetGUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GUID
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsMetadata) GetType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsMetadata) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsMetadata) GetSummary() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Summary
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsMetadata) GetSmart() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Smart
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsMetadata) GetPlaylistType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.PlaylistType
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsMetadata) GetComposite() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Composite
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsMetadata) GetDuration() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsMetadata) GetLeafCount() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LeafCount
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsMetadata) GetAddedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AddedAt
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsMetadata) GetUpdatedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.UpdatedAt
|
||||
}
|
||||
|
||||
type AddPlaylistContentsMediaContainer struct {
|
||||
Size *int `json:"size,omitempty"`
|
||||
LeafCountAdded *int `json:"leafCountAdded,omitempty"`
|
||||
LeafCountRequested *int `json:"leafCountRequested,omitempty"`
|
||||
Metadata []AddPlaylistContentsMetadata `json:"Metadata,omitempty"`
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsMediaContainer) GetSize() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsMediaContainer) GetLeafCountAdded() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LeafCountAdded
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsMediaContainer) GetLeafCountRequested() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LeafCountRequested
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsMediaContainer) GetMetadata() []AddPlaylistContentsMetadata {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Metadata
|
||||
}
|
||||
|
||||
// AddPlaylistContentsResponseBody - Playlist Updated
|
||||
type AddPlaylistContentsResponseBody struct {
|
||||
MediaContainer *AddPlaylistContentsMediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsResponseBody) GetMediaContainer() *AddPlaylistContentsMediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type AddPlaylistContentsResponse 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
|
||||
// Playlist Updated
|
||||
TwoHundredApplicationJSONObject *AddPlaylistContentsResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *AddPlaylistContentsPlaylistsResponseBody
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsResponse) GetTwoHundredApplicationJSONObject() *AddPlaylistContentsResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *AddPlaylistContentsResponse) GetFourHundredAndOneApplicationJSONObject() *AddPlaylistContentsPlaylistsResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
164
internal/sdk/models/operations/applyupdates.go
Normal file
164
internal/sdk/models/operations/applyupdates.go
Normal file
@@ -0,0 +1,164 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// Tonight - Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install
|
||||
type Tonight int64
|
||||
|
||||
const (
|
||||
TonightZero Tonight = 0
|
||||
TonightOne Tonight = 1
|
||||
)
|
||||
|
||||
func (e Tonight) ToPointer() *Tonight {
|
||||
return &e
|
||||
}
|
||||
|
||||
func (e *Tonight) UnmarshalJSON(data []byte) error {
|
||||
var v int64
|
||||
if err := json.Unmarshal(data, &v); err != nil {
|
||||
return err
|
||||
}
|
||||
switch v {
|
||||
case 0:
|
||||
fallthrough
|
||||
case 1:
|
||||
*e = Tonight(v)
|
||||
return nil
|
||||
default:
|
||||
return fmt.Errorf("invalid value for Tonight: %v", v)
|
||||
}
|
||||
}
|
||||
|
||||
// Skip - Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`.
|
||||
type Skip int64
|
||||
|
||||
const (
|
||||
SkipZero Skip = 0
|
||||
SkipOne Skip = 1
|
||||
)
|
||||
|
||||
func (e Skip) ToPointer() *Skip {
|
||||
return &e
|
||||
}
|
||||
|
||||
func (e *Skip) UnmarshalJSON(data []byte) error {
|
||||
var v int64
|
||||
if err := json.Unmarshal(data, &v); err != nil {
|
||||
return err
|
||||
}
|
||||
switch v {
|
||||
case 0:
|
||||
fallthrough
|
||||
case 1:
|
||||
*e = Skip(v)
|
||||
return nil
|
||||
default:
|
||||
return fmt.Errorf("invalid value for Skip: %v", v)
|
||||
}
|
||||
}
|
||||
|
||||
type ApplyUpdatesRequest struct {
|
||||
// Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install
|
||||
Tonight *Tonight `queryParam:"style=form,explode=true,name=tonight"`
|
||||
// Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`.
|
||||
Skip *Skip `queryParam:"style=form,explode=true,name=skip"`
|
||||
}
|
||||
|
||||
func (o *ApplyUpdatesRequest) GetTonight() *Tonight {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tonight
|
||||
}
|
||||
|
||||
func (o *ApplyUpdatesRequest) GetSkip() *Skip {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Skip
|
||||
}
|
||||
|
||||
type ApplyUpdatesErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *ApplyUpdatesErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *ApplyUpdatesErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *ApplyUpdatesErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// ApplyUpdatesResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type ApplyUpdatesResponseBody struct {
|
||||
Errors []ApplyUpdatesErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *ApplyUpdatesResponseBody) GetErrors() []ApplyUpdatesErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type ApplyUpdatesResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *ApplyUpdatesResponseBody
|
||||
}
|
||||
|
||||
func (o *ApplyUpdatesResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *ApplyUpdatesResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *ApplyUpdatesResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *ApplyUpdatesResponse) GetObject() *ApplyUpdatesResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
97
internal/sdk/models/operations/cancelserveractivities.go
Normal file
97
internal/sdk/models/operations/cancelserveractivities.go
Normal file
@@ -0,0 +1,97 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type CancelServerActivitiesRequest struct {
|
||||
// The UUID of the activity to cancel.
|
||||
ActivityUUID string `pathParam:"style=simple,explode=false,name=activityUUID"`
|
||||
}
|
||||
|
||||
func (o *CancelServerActivitiesRequest) GetActivityUUID() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ActivityUUID
|
||||
}
|
||||
|
||||
type CancelServerActivitiesErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *CancelServerActivitiesErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *CancelServerActivitiesErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *CancelServerActivitiesErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// CancelServerActivitiesResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type CancelServerActivitiesResponseBody struct {
|
||||
Errors []CancelServerActivitiesErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *CancelServerActivitiesResponseBody) GetErrors() []CancelServerActivitiesErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type CancelServerActivitiesResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *CancelServerActivitiesResponseBody
|
||||
}
|
||||
|
||||
func (o *CancelServerActivitiesResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *CancelServerActivitiesResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *CancelServerActivitiesResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *CancelServerActivitiesResponse) GetObject() *CancelServerActivitiesResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
127
internal/sdk/models/operations/checkforupdates.go
Normal file
127
internal/sdk/models/operations/checkforupdates.go
Normal file
@@ -0,0 +1,127 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// Download - Indicate that you want to start download any updates found.
|
||||
type Download int64
|
||||
|
||||
const (
|
||||
DownloadZero Download = 0
|
||||
DownloadOne Download = 1
|
||||
)
|
||||
|
||||
func (e Download) ToPointer() *Download {
|
||||
return &e
|
||||
}
|
||||
|
||||
func (e *Download) UnmarshalJSON(data []byte) error {
|
||||
var v int64
|
||||
if err := json.Unmarshal(data, &v); err != nil {
|
||||
return err
|
||||
}
|
||||
switch v {
|
||||
case 0:
|
||||
fallthrough
|
||||
case 1:
|
||||
*e = Download(v)
|
||||
return nil
|
||||
default:
|
||||
return fmt.Errorf("invalid value for Download: %v", v)
|
||||
}
|
||||
}
|
||||
|
||||
type CheckForUpdatesRequest struct {
|
||||
// Indicate that you want to start download any updates found.
|
||||
Download *Download `queryParam:"style=form,explode=true,name=download"`
|
||||
}
|
||||
|
||||
func (o *CheckForUpdatesRequest) GetDownload() *Download {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Download
|
||||
}
|
||||
|
||||
type CheckForUpdatesErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *CheckForUpdatesErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *CheckForUpdatesErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *CheckForUpdatesErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// CheckForUpdatesResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type CheckForUpdatesResponseBody struct {
|
||||
Errors []CheckForUpdatesErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *CheckForUpdatesResponseBody) GetErrors() []CheckForUpdatesErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type CheckForUpdatesResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *CheckForUpdatesResponseBody
|
||||
}
|
||||
|
||||
func (o *CheckForUpdatesResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *CheckForUpdatesResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *CheckForUpdatesResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *CheckForUpdatesResponse) GetObject() *CheckForUpdatesResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
97
internal/sdk/models/operations/clearplaylistcontents.go
Normal file
97
internal/sdk/models/operations/clearplaylistcontents.go
Normal file
@@ -0,0 +1,97 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type ClearPlaylistContentsRequest struct {
|
||||
// the ID of the playlist
|
||||
PlaylistID float64 `pathParam:"style=simple,explode=false,name=playlistID"`
|
||||
}
|
||||
|
||||
func (o *ClearPlaylistContentsRequest) GetPlaylistID() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.PlaylistID
|
||||
}
|
||||
|
||||
type ClearPlaylistContentsErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *ClearPlaylistContentsErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *ClearPlaylistContentsErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *ClearPlaylistContentsErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// ClearPlaylistContentsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type ClearPlaylistContentsResponseBody struct {
|
||||
Errors []ClearPlaylistContentsErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *ClearPlaylistContentsResponseBody) GetErrors() []ClearPlaylistContentsErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type ClearPlaylistContentsResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *ClearPlaylistContentsResponseBody
|
||||
}
|
||||
|
||||
func (o *ClearPlaylistContentsResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *ClearPlaylistContentsResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *ClearPlaylistContentsResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *ClearPlaylistContentsResponse) GetObject() *ClearPlaylistContentsResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
365
internal/sdk/models/operations/createplaylist.go
Normal file
365
internal/sdk/models/operations/createplaylist.go
Normal file
@@ -0,0 +1,365 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// QueryParamType - type of playlist to create
|
||||
type QueryParamType string
|
||||
|
||||
const (
|
||||
QueryParamTypeAudio QueryParamType = "audio"
|
||||
QueryParamTypeVideo QueryParamType = "video"
|
||||
QueryParamTypePhoto QueryParamType = "photo"
|
||||
)
|
||||
|
||||
func (e QueryParamType) ToPointer() *QueryParamType {
|
||||
return &e
|
||||
}
|
||||
|
||||
func (e *QueryParamType) UnmarshalJSON(data []byte) error {
|
||||
var v string
|
||||
if err := json.Unmarshal(data, &v); err != nil {
|
||||
return err
|
||||
}
|
||||
switch v {
|
||||
case "audio":
|
||||
fallthrough
|
||||
case "video":
|
||||
fallthrough
|
||||
case "photo":
|
||||
*e = QueryParamType(v)
|
||||
return nil
|
||||
default:
|
||||
return fmt.Errorf("invalid value for QueryParamType: %v", v)
|
||||
}
|
||||
}
|
||||
|
||||
// Smart - whether the playlist is smart or not
|
||||
type Smart int64
|
||||
|
||||
const (
|
||||
SmartZero Smart = 0
|
||||
SmartOne Smart = 1
|
||||
)
|
||||
|
||||
func (e Smart) ToPointer() *Smart {
|
||||
return &e
|
||||
}
|
||||
|
||||
func (e *Smart) UnmarshalJSON(data []byte) error {
|
||||
var v int64
|
||||
if err := json.Unmarshal(data, &v); err != nil {
|
||||
return err
|
||||
}
|
||||
switch v {
|
||||
case 0:
|
||||
fallthrough
|
||||
case 1:
|
||||
*e = Smart(v)
|
||||
return nil
|
||||
default:
|
||||
return fmt.Errorf("invalid value for Smart: %v", v)
|
||||
}
|
||||
}
|
||||
|
||||
type CreatePlaylistRequest struct {
|
||||
// name of the playlist
|
||||
Title string `queryParam:"style=form,explode=true,name=title"`
|
||||
// type of playlist to create
|
||||
Type QueryParamType `queryParam:"style=form,explode=true,name=type"`
|
||||
// whether the playlist is smart or not
|
||||
Smart Smart `queryParam:"style=form,explode=true,name=smart"`
|
||||
// the content URI for the playlist
|
||||
URI string `queryParam:"style=form,explode=true,name=uri"`
|
||||
// the play queue to copy to a playlist
|
||||
PlayQueueID *float64 `queryParam:"style=form,explode=true,name=playQueueID"`
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistRequest) GetTitle() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistRequest) GetType() QueryParamType {
|
||||
if o == nil {
|
||||
return QueryParamType("")
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistRequest) GetSmart() Smart {
|
||||
if o == nil {
|
||||
return Smart(0)
|
||||
}
|
||||
return o.Smart
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistRequest) GetURI() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.URI
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistRequest) GetPlayQueueID() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.PlayQueueID
|
||||
}
|
||||
|
||||
type CreatePlaylistErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// CreatePlaylistPlaylistsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type CreatePlaylistPlaylistsResponseBody struct {
|
||||
Errors []CreatePlaylistErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistPlaylistsResponseBody) GetErrors() []CreatePlaylistErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type CreatePlaylistMetadata struct {
|
||||
RatingKey *string `json:"ratingKey,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
GUID *string `json:"guid,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
Summary *string `json:"summary,omitempty"`
|
||||
Smart *bool `json:"smart,omitempty"`
|
||||
PlaylistType *string `json:"playlistType,omitempty"`
|
||||
Icon *string `json:"icon,omitempty"`
|
||||
ViewCount *int `json:"viewCount,omitempty"`
|
||||
LastViewedAt *int `json:"lastViewedAt,omitempty"`
|
||||
LeafCount *int `json:"leafCount,omitempty"`
|
||||
AddedAt *int `json:"addedAt,omitempty"`
|
||||
UpdatedAt *int `json:"updatedAt,omitempty"`
|
||||
Composite *string `json:"composite,omitempty"`
|
||||
Duration *int `json:"duration,omitempty"`
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistMetadata) GetRatingKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RatingKey
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistMetadata) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistMetadata) GetGUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GUID
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistMetadata) GetType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistMetadata) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistMetadata) GetSummary() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Summary
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistMetadata) GetSmart() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Smart
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistMetadata) GetPlaylistType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.PlaylistType
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistMetadata) GetIcon() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Icon
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistMetadata) GetViewCount() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ViewCount
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistMetadata) GetLastViewedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LastViewedAt
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistMetadata) GetLeafCount() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LeafCount
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistMetadata) GetAddedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AddedAt
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistMetadata) GetUpdatedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.UpdatedAt
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistMetadata) GetComposite() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Composite
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistMetadata) GetDuration() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
type CreatePlaylistMediaContainer struct {
|
||||
Size *int `json:"size,omitempty"`
|
||||
Metadata []CreatePlaylistMetadata `json:"Metadata,omitempty"`
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistMediaContainer) GetSize() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistMediaContainer) GetMetadata() []CreatePlaylistMetadata {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Metadata
|
||||
}
|
||||
|
||||
// CreatePlaylistResponseBody - returns all playlists
|
||||
type CreatePlaylistResponseBody struct {
|
||||
MediaContainer *CreatePlaylistMediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistResponseBody) GetMediaContainer() *CreatePlaylistMediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type CreatePlaylistResponse 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
|
||||
// returns all playlists
|
||||
TwoHundredApplicationJSONObject *CreatePlaylistResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *CreatePlaylistPlaylistsResponseBody
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistResponse) GetTwoHundredApplicationJSONObject() *CreatePlaylistResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *CreatePlaylistResponse) GetFourHundredAndOneApplicationJSONObject() *CreatePlaylistPlaylistsResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
97
internal/sdk/models/operations/deletelibrary.go
Normal file
97
internal/sdk/models/operations/deletelibrary.go
Normal file
@@ -0,0 +1,97 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type DeleteLibraryRequest struct {
|
||||
// the Id of the library to query
|
||||
SectionID float64 `pathParam:"style=simple,explode=false,name=sectionId"`
|
||||
}
|
||||
|
||||
func (o *DeleteLibraryRequest) GetSectionID() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.SectionID
|
||||
}
|
||||
|
||||
type DeleteLibraryErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *DeleteLibraryErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *DeleteLibraryErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *DeleteLibraryErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// DeleteLibraryResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type DeleteLibraryResponseBody struct {
|
||||
Errors []DeleteLibraryErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *DeleteLibraryResponseBody) GetErrors() []DeleteLibraryErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type DeleteLibraryResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *DeleteLibraryResponseBody
|
||||
}
|
||||
|
||||
func (o *DeleteLibraryResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *DeleteLibraryResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *DeleteLibraryResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *DeleteLibraryResponse) GetObject() *DeleteLibraryResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
97
internal/sdk/models/operations/deleteplaylist.go
Normal file
97
internal/sdk/models/operations/deleteplaylist.go
Normal file
@@ -0,0 +1,97 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type DeletePlaylistRequest struct {
|
||||
// the ID of the playlist
|
||||
PlaylistID float64 `pathParam:"style=simple,explode=false,name=playlistID"`
|
||||
}
|
||||
|
||||
func (o *DeletePlaylistRequest) GetPlaylistID() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.PlaylistID
|
||||
}
|
||||
|
||||
type DeletePlaylistErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *DeletePlaylistErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *DeletePlaylistErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *DeletePlaylistErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// DeletePlaylistResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type DeletePlaylistResponseBody struct {
|
||||
Errors []DeletePlaylistErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *DeletePlaylistResponseBody) GetErrors() []DeletePlaylistErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type DeletePlaylistResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *DeletePlaylistResponseBody
|
||||
}
|
||||
|
||||
func (o *DeletePlaylistResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *DeletePlaylistResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *DeletePlaylistResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *DeletePlaylistResponse) GetObject() *DeletePlaylistResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
85
internal/sdk/models/operations/enablepapertrail.go
Normal file
85
internal/sdk/models/operations/enablepapertrail.go
Normal file
@@ -0,0 +1,85 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type EnablePaperTrailErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *EnablePaperTrailErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *EnablePaperTrailErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *EnablePaperTrailErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// EnablePaperTrailResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type EnablePaperTrailResponseBody struct {
|
||||
Errors []EnablePaperTrailErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *EnablePaperTrailResponseBody) GetErrors() []EnablePaperTrailErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type EnablePaperTrailResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *EnablePaperTrailResponseBody
|
||||
}
|
||||
|
||||
func (o *EnablePaperTrailResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *EnablePaperTrailResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *EnablePaperTrailResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *EnablePaperTrailResponse) GetObject() *EnablePaperTrailResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
216
internal/sdk/models/operations/getavailableclients.go
Normal file
216
internal/sdk/models/operations/getavailableclients.go
Normal file
@@ -0,0 +1,216 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type GetAvailableClientsErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetAvailableClientsErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetAvailableClientsErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetAvailableClientsErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetAvailableClientsServerResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetAvailableClientsServerResponseBody struct {
|
||||
Errors []GetAvailableClientsErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetAvailableClientsServerResponseBody) GetErrors() []GetAvailableClientsErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type Server struct {
|
||||
Name *string `json:"name,omitempty"`
|
||||
Host *string `json:"host,omitempty"`
|
||||
Address *string `json:"address,omitempty"`
|
||||
Port *float64 `json:"port,omitempty"`
|
||||
MachineIdentifier *string `json:"machineIdentifier,omitempty"`
|
||||
Version *string `json:"version,omitempty"`
|
||||
Protocol *string `json:"protocol,omitempty"`
|
||||
Product *string `json:"product,omitempty"`
|
||||
DeviceClass *string `json:"deviceClass,omitempty"`
|
||||
ProtocolVersion *float64 `json:"protocolVersion,omitempty"`
|
||||
ProtocolCapabilities *string `json:"protocolCapabilities,omitempty"`
|
||||
}
|
||||
|
||||
func (o *Server) GetName() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Name
|
||||
}
|
||||
|
||||
func (o *Server) GetHost() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Host
|
||||
}
|
||||
|
||||
func (o *Server) GetAddress() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Address
|
||||
}
|
||||
|
||||
func (o *Server) GetPort() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Port
|
||||
}
|
||||
|
||||
func (o *Server) GetMachineIdentifier() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MachineIdentifier
|
||||
}
|
||||
|
||||
func (o *Server) GetVersion() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Version
|
||||
}
|
||||
|
||||
func (o *Server) GetProtocol() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Protocol
|
||||
}
|
||||
|
||||
func (o *Server) GetProduct() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Product
|
||||
}
|
||||
|
||||
func (o *Server) GetDeviceClass() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.DeviceClass
|
||||
}
|
||||
|
||||
func (o *Server) GetProtocolVersion() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ProtocolVersion
|
||||
}
|
||||
|
||||
func (o *Server) GetProtocolCapabilities() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ProtocolCapabilities
|
||||
}
|
||||
|
||||
type GetAvailableClientsMediaContainer struct {
|
||||
Size *float64 `json:"size,omitempty"`
|
||||
Server []Server `json:"Server,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetAvailableClientsMediaContainer) GetSize() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetAvailableClientsMediaContainer) GetServer() []Server {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Server
|
||||
}
|
||||
|
||||
// GetAvailableClientsResponseBody - Available Clients
|
||||
type GetAvailableClientsResponseBody struct {
|
||||
MediaContainer *GetAvailableClientsMediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetAvailableClientsResponseBody) GetMediaContainer() *GetAvailableClientsMediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type GetAvailableClientsResponse 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
|
||||
// Available Clients
|
||||
TwoHundredApplicationJSONObject *GetAvailableClientsResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *GetAvailableClientsServerResponseBody
|
||||
}
|
||||
|
||||
func (o *GetAvailableClientsResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetAvailableClientsResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetAvailableClientsResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetAvailableClientsResponse) GetTwoHundredApplicationJSONObject() *GetAvailableClientsResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *GetAvailableClientsResponse) GetFourHundredAndOneApplicationJSONObject() *GetAvailableClientsServerResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
168
internal/sdk/models/operations/getbutlertasks.go
Normal file
168
internal/sdk/models/operations/getbutlertasks.go
Normal file
@@ -0,0 +1,168 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type GetButlerTasksErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetButlerTasksErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetButlerTasksErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetButlerTasksErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetButlerTasksButlerResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetButlerTasksButlerResponseBody struct {
|
||||
Errors []GetButlerTasksErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetButlerTasksButlerResponseBody) GetErrors() []GetButlerTasksErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type ButlerTask struct {
|
||||
Name *string `json:"name,omitempty"`
|
||||
Interval *float64 `json:"interval,omitempty"`
|
||||
ScheduleRandomized *bool `json:"scheduleRandomized,omitempty"`
|
||||
Enabled *bool `json:"enabled,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
}
|
||||
|
||||
func (o *ButlerTask) GetName() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Name
|
||||
}
|
||||
|
||||
func (o *ButlerTask) GetInterval() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Interval
|
||||
}
|
||||
|
||||
func (o *ButlerTask) GetScheduleRandomized() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ScheduleRandomized
|
||||
}
|
||||
|
||||
func (o *ButlerTask) GetEnabled() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Enabled
|
||||
}
|
||||
|
||||
func (o *ButlerTask) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *ButlerTask) GetDescription() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Description
|
||||
}
|
||||
|
||||
type ButlerTasks struct {
|
||||
ButlerTask []ButlerTask `json:"ButlerTask,omitempty"`
|
||||
}
|
||||
|
||||
func (o *ButlerTasks) GetButlerTask() []ButlerTask {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ButlerTask
|
||||
}
|
||||
|
||||
// GetButlerTasksResponseBody - All butler tasks
|
||||
type GetButlerTasksResponseBody struct {
|
||||
ButlerTasks *ButlerTasks `json:"ButlerTasks,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetButlerTasksResponseBody) GetButlerTasks() *ButlerTasks {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ButlerTasks
|
||||
}
|
||||
|
||||
type GetButlerTasksResponse 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
|
||||
// All butler tasks
|
||||
TwoHundredApplicationJSONObject *GetButlerTasksResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *GetButlerTasksButlerResponseBody
|
||||
}
|
||||
|
||||
func (o *GetButlerTasksResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetButlerTasksResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetButlerTasksResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetButlerTasksResponse) GetTwoHundredApplicationJSONObject() *GetButlerTasksResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *GetButlerTasksResponse) GetFourHundredAndOneApplicationJSONObject() *GetButlerTasksButlerResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
176
internal/sdk/models/operations/getdevices.go
Normal file
176
internal/sdk/models/operations/getdevices.go
Normal file
@@ -0,0 +1,176 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type GetDevicesErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetDevicesErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetDevicesErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetDevicesErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetDevicesServerResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetDevicesServerResponseBody struct {
|
||||
Errors []GetDevicesErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetDevicesServerResponseBody) GetErrors() []GetDevicesErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type Device struct {
|
||||
ID *float64 `json:"id,omitempty"`
|
||||
Name *string `json:"name,omitempty"`
|
||||
Platform *string `json:"platform,omitempty"`
|
||||
ClientIdentifier *string `json:"clientIdentifier,omitempty"`
|
||||
CreatedAt *float64 `json:"createdAt,omitempty"`
|
||||
}
|
||||
|
||||
func (o *Device) GetID() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ID
|
||||
}
|
||||
|
||||
func (o *Device) GetName() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Name
|
||||
}
|
||||
|
||||
func (o *Device) GetPlatform() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Platform
|
||||
}
|
||||
|
||||
func (o *Device) GetClientIdentifier() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ClientIdentifier
|
||||
}
|
||||
|
||||
func (o *Device) GetCreatedAt() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.CreatedAt
|
||||
}
|
||||
|
||||
type GetDevicesMediaContainer struct {
|
||||
Size *float64 `json:"size,omitempty"`
|
||||
Identifier *string `json:"identifier,omitempty"`
|
||||
Device []Device `json:"Device,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetDevicesMediaContainer) GetSize() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetDevicesMediaContainer) GetIdentifier() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Identifier
|
||||
}
|
||||
|
||||
func (o *GetDevicesMediaContainer) GetDevice() []Device {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Device
|
||||
}
|
||||
|
||||
// GetDevicesResponseBody - Devices
|
||||
type GetDevicesResponseBody struct {
|
||||
MediaContainer *GetDevicesMediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetDevicesResponseBody) GetMediaContainer() *GetDevicesMediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type GetDevicesResponse 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
|
||||
// Devices
|
||||
TwoHundredApplicationJSONObject *GetDevicesResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *GetDevicesServerResponseBody
|
||||
}
|
||||
|
||||
func (o *GetDevicesResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetDevicesResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetDevicesResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetDevicesResponse) GetTwoHundredApplicationJSONObject() *GetDevicesResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *GetDevicesResponse) GetFourHundredAndOneApplicationJSONObject() *GetDevicesServerResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
106
internal/sdk/models/operations/getfilehash.go
Normal file
106
internal/sdk/models/operations/getfilehash.go
Normal file
@@ -0,0 +1,106 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type GetFileHashRequest struct {
|
||||
// This is the path to the local file, must be prefixed by `file://`
|
||||
URL string `queryParam:"style=form,explode=true,name=url"`
|
||||
// Item type
|
||||
Type *float64 `queryParam:"style=form,explode=true,name=type"`
|
||||
}
|
||||
|
||||
func (o *GetFileHashRequest) GetURL() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.URL
|
||||
}
|
||||
|
||||
func (o *GetFileHashRequest) GetType() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
type GetFileHashErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetFileHashErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetFileHashErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetFileHashErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetFileHashResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetFileHashResponseBody struct {
|
||||
Errors []GetFileHashErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetFileHashResponseBody) GetErrors() []GetFileHashErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type GetFileHashResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *GetFileHashResponseBody
|
||||
}
|
||||
|
||||
func (o *GetFileHashResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetFileHashResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetFileHashResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetFileHashResponse) GetObject() *GetFileHashResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
422
internal/sdk/models/operations/getglobalhubs.go
Normal file
422
internal/sdk/models/operations/getglobalhubs.go
Normal file
@@ -0,0 +1,422 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// OnlyTransient - Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added).
|
||||
type OnlyTransient int64
|
||||
|
||||
const (
|
||||
OnlyTransientZero OnlyTransient = 0
|
||||
OnlyTransientOne OnlyTransient = 1
|
||||
)
|
||||
|
||||
func (e OnlyTransient) ToPointer() *OnlyTransient {
|
||||
return &e
|
||||
}
|
||||
|
||||
func (e *OnlyTransient) UnmarshalJSON(data []byte) error {
|
||||
var v int64
|
||||
if err := json.Unmarshal(data, &v); err != nil {
|
||||
return err
|
||||
}
|
||||
switch v {
|
||||
case 0:
|
||||
fallthrough
|
||||
case 1:
|
||||
*e = OnlyTransient(v)
|
||||
return nil
|
||||
default:
|
||||
return fmt.Errorf("invalid value for OnlyTransient: %v", v)
|
||||
}
|
||||
}
|
||||
|
||||
type GetGlobalHubsRequest struct {
|
||||
// The number of items to return with each hub.
|
||||
Count *float64 `queryParam:"style=form,explode=true,name=count"`
|
||||
// Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added).
|
||||
OnlyTransient *OnlyTransient `queryParam:"style=form,explode=true,name=onlyTransient"`
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsRequest) GetCount() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Count
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsRequest) GetOnlyTransient() *OnlyTransient {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.OnlyTransient
|
||||
}
|
||||
|
||||
type GetGlobalHubsErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetGlobalHubsHubsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetGlobalHubsHubsResponseBody struct {
|
||||
Errors []GetGlobalHubsErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsHubsResponseBody) GetErrors() []GetGlobalHubsErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type GetGlobalHubsMetadata struct {
|
||||
RatingKey *string `json:"ratingKey,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
GUID *string `json:"guid,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
TitleSort *string `json:"titleSort,omitempty"`
|
||||
Summary *string `json:"summary,omitempty"`
|
||||
Smart *bool `json:"smart,omitempty"`
|
||||
PlaylistType *string `json:"playlistType,omitempty"`
|
||||
Composite *string `json:"composite,omitempty"`
|
||||
Icon *string `json:"icon,omitempty"`
|
||||
ViewCount *int `json:"viewCount,omitempty"`
|
||||
LastViewedAt *int `json:"lastViewedAt,omitempty"`
|
||||
Duration *int `json:"duration,omitempty"`
|
||||
LeafCount *int `json:"leafCount,omitempty"`
|
||||
AddedAt *int `json:"addedAt,omitempty"`
|
||||
UpdatedAt *int `json:"updatedAt,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsMetadata) GetRatingKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RatingKey
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsMetadata) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsMetadata) GetGUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GUID
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsMetadata) GetType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsMetadata) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsMetadata) GetTitleSort() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TitleSort
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsMetadata) GetSummary() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Summary
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsMetadata) GetSmart() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Smart
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsMetadata) GetPlaylistType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.PlaylistType
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsMetadata) GetComposite() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Composite
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsMetadata) GetIcon() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Icon
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsMetadata) GetViewCount() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ViewCount
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsMetadata) GetLastViewedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LastViewedAt
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsMetadata) GetDuration() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsMetadata) GetLeafCount() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LeafCount
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsMetadata) GetAddedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AddedAt
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsMetadata) GetUpdatedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.UpdatedAt
|
||||
}
|
||||
|
||||
type Hub struct {
|
||||
HubKey *string `json:"hubKey,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
HubIdentifier *string `json:"hubIdentifier,omitempty"`
|
||||
Context *string `json:"context,omitempty"`
|
||||
Size *int `json:"size,omitempty"`
|
||||
More *bool `json:"more,omitempty"`
|
||||
Style *string `json:"style,omitempty"`
|
||||
Promoted *bool `json:"promoted,omitempty"`
|
||||
Metadata []GetGlobalHubsMetadata `json:"Metadata,omitempty"`
|
||||
}
|
||||
|
||||
func (o *Hub) GetHubKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.HubKey
|
||||
}
|
||||
|
||||
func (o *Hub) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *Hub) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *Hub) GetType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
func (o *Hub) GetHubIdentifier() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.HubIdentifier
|
||||
}
|
||||
|
||||
func (o *Hub) GetContext() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Context
|
||||
}
|
||||
|
||||
func (o *Hub) GetSize() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *Hub) GetMore() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.More
|
||||
}
|
||||
|
||||
func (o *Hub) GetStyle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Style
|
||||
}
|
||||
|
||||
func (o *Hub) GetPromoted() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Promoted
|
||||
}
|
||||
|
||||
func (o *Hub) GetMetadata() []GetGlobalHubsMetadata {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Metadata
|
||||
}
|
||||
|
||||
type GetGlobalHubsMediaContainer struct {
|
||||
Size *int `json:"size,omitempty"`
|
||||
AllowSync *bool `json:"allowSync,omitempty"`
|
||||
Identifier *string `json:"identifier,omitempty"`
|
||||
Hub []Hub `json:"Hub,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsMediaContainer) GetSize() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsMediaContainer) GetAllowSync() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AllowSync
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsMediaContainer) GetIdentifier() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Identifier
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsMediaContainer) GetHub() []Hub {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Hub
|
||||
}
|
||||
|
||||
// GetGlobalHubsResponseBody - returns global hubs
|
||||
type GetGlobalHubsResponseBody struct {
|
||||
MediaContainer *GetGlobalHubsMediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsResponseBody) GetMediaContainer() *GetGlobalHubsMediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type GetGlobalHubsResponse 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
|
||||
// returns global hubs
|
||||
TwoHundredApplicationJSONObject *GetGlobalHubsResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *GetGlobalHubsHubsResponseBody
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsResponse) GetTwoHundredApplicationJSONObject() *GetGlobalHubsResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *GetGlobalHubsResponse) GetFourHundredAndOneApplicationJSONObject() *GetGlobalHubsHubsResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
331
internal/sdk/models/operations/getlibraries.go
Normal file
331
internal/sdk/models/operations/getlibraries.go
Normal file
@@ -0,0 +1,331 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type GetLibrariesErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibrariesErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetLibrariesErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetLibrariesErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetLibrariesLibraryResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetLibrariesLibraryResponseBody struct {
|
||||
Errors []GetLibrariesErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibrariesLibraryResponseBody) GetErrors() []GetLibrariesErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type GetLibrariesLocation struct {
|
||||
ID *int `json:"id,omitempty"`
|
||||
Path *string `json:"path,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibrariesLocation) GetID() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ID
|
||||
}
|
||||
|
||||
func (o *GetLibrariesLocation) GetPath() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Path
|
||||
}
|
||||
|
||||
type GetLibrariesDirectory struct {
|
||||
AllowSync *bool `json:"allowSync,omitempty"`
|
||||
Art *string `json:"art,omitempty"`
|
||||
Composite *string `json:"composite,omitempty"`
|
||||
Filters *bool `json:"filters,omitempty"`
|
||||
Refreshing *bool `json:"refreshing,omitempty"`
|
||||
Thumb *string `json:"thumb,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
Agent *string `json:"agent,omitempty"`
|
||||
Scanner *string `json:"scanner,omitempty"`
|
||||
Language *string `json:"language,omitempty"`
|
||||
UUID *string `json:"uuid,omitempty"`
|
||||
UpdatedAt *int `json:"updatedAt,omitempty"`
|
||||
CreatedAt *int `json:"createdAt,omitempty"`
|
||||
ScannedAt *int `json:"scannedAt,omitempty"`
|
||||
Content *bool `json:"content,omitempty"`
|
||||
Directory *bool `json:"directory,omitempty"`
|
||||
ContentChangedAt *int `json:"contentChangedAt,omitempty"`
|
||||
Hidden *int `json:"hidden,omitempty"`
|
||||
Location []GetLibrariesLocation `json:"Location,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibrariesDirectory) GetAllowSync() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AllowSync
|
||||
}
|
||||
|
||||
func (o *GetLibrariesDirectory) GetArt() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Art
|
||||
}
|
||||
|
||||
func (o *GetLibrariesDirectory) GetComposite() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Composite
|
||||
}
|
||||
|
||||
func (o *GetLibrariesDirectory) GetFilters() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Filters
|
||||
}
|
||||
|
||||
func (o *GetLibrariesDirectory) GetRefreshing() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Refreshing
|
||||
}
|
||||
|
||||
func (o *GetLibrariesDirectory) GetThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Thumb
|
||||
}
|
||||
|
||||
func (o *GetLibrariesDirectory) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *GetLibrariesDirectory) GetType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
func (o *GetLibrariesDirectory) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *GetLibrariesDirectory) GetAgent() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Agent
|
||||
}
|
||||
|
||||
func (o *GetLibrariesDirectory) GetScanner() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Scanner
|
||||
}
|
||||
|
||||
func (o *GetLibrariesDirectory) GetLanguage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Language
|
||||
}
|
||||
|
||||
func (o *GetLibrariesDirectory) GetUUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.UUID
|
||||
}
|
||||
|
||||
func (o *GetLibrariesDirectory) GetUpdatedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.UpdatedAt
|
||||
}
|
||||
|
||||
func (o *GetLibrariesDirectory) GetCreatedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.CreatedAt
|
||||
}
|
||||
|
||||
func (o *GetLibrariesDirectory) GetScannedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ScannedAt
|
||||
}
|
||||
|
||||
func (o *GetLibrariesDirectory) GetContent() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Content
|
||||
}
|
||||
|
||||
func (o *GetLibrariesDirectory) GetDirectory() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Directory
|
||||
}
|
||||
|
||||
func (o *GetLibrariesDirectory) GetContentChangedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ContentChangedAt
|
||||
}
|
||||
|
||||
func (o *GetLibrariesDirectory) GetHidden() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Hidden
|
||||
}
|
||||
|
||||
func (o *GetLibrariesDirectory) GetLocation() []GetLibrariesLocation {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Location
|
||||
}
|
||||
|
||||
type GetLibrariesMediaContainer struct {
|
||||
Size *int `json:"size,omitempty"`
|
||||
AllowSync *bool `json:"allowSync,omitempty"`
|
||||
Title1 *string `json:"title1,omitempty"`
|
||||
Directory []GetLibrariesDirectory `json:"Directory,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibrariesMediaContainer) GetSize() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetLibrariesMediaContainer) GetAllowSync() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AllowSync
|
||||
}
|
||||
|
||||
func (o *GetLibrariesMediaContainer) GetTitle1() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title1
|
||||
}
|
||||
|
||||
func (o *GetLibrariesMediaContainer) GetDirectory() []GetLibrariesDirectory {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Directory
|
||||
}
|
||||
|
||||
// GetLibrariesResponseBody - The libraries available on the Server
|
||||
type GetLibrariesResponseBody struct {
|
||||
MediaContainer *GetLibrariesMediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibrariesResponseBody) GetMediaContainer() *GetLibrariesMediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type GetLibrariesResponse 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
|
||||
// The libraries available on the Server
|
||||
TwoHundredApplicationJSONObject *GetLibrariesResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *GetLibrariesLibraryResponseBody
|
||||
}
|
||||
|
||||
func (o *GetLibrariesResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetLibrariesResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetLibrariesResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetLibrariesResponse) GetTwoHundredApplicationJSONObject() *GetLibrariesResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *GetLibrariesResponse) GetFourHundredAndOneApplicationJSONObject() *GetLibrariesLibraryResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
564
internal/sdk/models/operations/getlibrary.go
Normal file
564
internal/sdk/models/operations/getlibrary.go
Normal file
@@ -0,0 +1,564 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/LukeHagar/terraform-provider-PlexAPI/internal/sdk/internal/utils"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// IncludeDetails - Whether or not to include details for a section (types, filters, and sorts).
|
||||
// Only exists for backwards compatibility, media providers other than the server libraries have it on always.
|
||||
type IncludeDetails int64
|
||||
|
||||
const (
|
||||
IncludeDetailsZero IncludeDetails = 0
|
||||
IncludeDetailsOne IncludeDetails = 1
|
||||
)
|
||||
|
||||
func (e IncludeDetails) ToPointer() *IncludeDetails {
|
||||
return &e
|
||||
}
|
||||
|
||||
func (e *IncludeDetails) UnmarshalJSON(data []byte) error {
|
||||
var v int64
|
||||
if err := json.Unmarshal(data, &v); err != nil {
|
||||
return err
|
||||
}
|
||||
switch v {
|
||||
case 0:
|
||||
fallthrough
|
||||
case 1:
|
||||
*e = IncludeDetails(v)
|
||||
return nil
|
||||
default:
|
||||
return fmt.Errorf("invalid value for IncludeDetails: %v", v)
|
||||
}
|
||||
}
|
||||
|
||||
type GetLibraryRequest struct {
|
||||
// the Id of the library to query
|
||||
SectionID float64 `pathParam:"style=simple,explode=false,name=sectionId"`
|
||||
// Whether or not to include details for a section (types, filters, and sorts).
|
||||
// Only exists for backwards compatibility, media providers other than the server libraries have it on always.
|
||||
//
|
||||
IncludeDetails *IncludeDetails `default:"0" queryParam:"style=form,explode=true,name=includeDetails"`
|
||||
}
|
||||
|
||||
func (g GetLibraryRequest) MarshalJSON() ([]byte, error) {
|
||||
return utils.MarshalJSON(g, "", false)
|
||||
}
|
||||
|
||||
func (g *GetLibraryRequest) UnmarshalJSON(data []byte) error {
|
||||
if err := utils.UnmarshalJSON(data, &g, "", false, false); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (o *GetLibraryRequest) GetSectionID() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.SectionID
|
||||
}
|
||||
|
||||
func (o *GetLibraryRequest) GetIncludeDetails() *IncludeDetails {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.IncludeDetails
|
||||
}
|
||||
|
||||
type GetLibraryErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetLibraryErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetLibraryErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetLibraryLibraryResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetLibraryLibraryResponseBody struct {
|
||||
Errors []GetLibraryErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryLibraryResponseBody) GetErrors() []GetLibraryErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type GetLibraryDirectory struct {
|
||||
Key *string `json:"key,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
Secondary *bool `json:"secondary,omitempty"`
|
||||
Prompt *string `json:"prompt,omitempty"`
|
||||
Search *bool `json:"search,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryDirectory) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *GetLibraryDirectory) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *GetLibraryDirectory) GetSecondary() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Secondary
|
||||
}
|
||||
|
||||
func (o *GetLibraryDirectory) GetPrompt() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Prompt
|
||||
}
|
||||
|
||||
func (o *GetLibraryDirectory) GetSearch() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Search
|
||||
}
|
||||
|
||||
type Filter struct {
|
||||
Filter *string `json:"filter,omitempty"`
|
||||
FilterType *string `json:"filterType,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
}
|
||||
|
||||
func (o *Filter) GetFilter() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Filter
|
||||
}
|
||||
|
||||
func (o *Filter) GetFilterType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FilterType
|
||||
}
|
||||
|
||||
func (o *Filter) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *Filter) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *Filter) GetType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
type Sort struct {
|
||||
Default *string `json:"default,omitempty"`
|
||||
DefaultDirection *string `json:"defaultDirection,omitempty"`
|
||||
DescKey *string `json:"descKey,omitempty"`
|
||||
FirstCharacterKey *string `json:"firstCharacterKey,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
}
|
||||
|
||||
func (o *Sort) GetDefault() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Default
|
||||
}
|
||||
|
||||
func (o *Sort) GetDefaultDirection() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.DefaultDirection
|
||||
}
|
||||
|
||||
func (o *Sort) GetDescKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.DescKey
|
||||
}
|
||||
|
||||
func (o *Sort) GetFirstCharacterKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FirstCharacterKey
|
||||
}
|
||||
|
||||
func (o *Sort) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *Sort) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
type Field struct {
|
||||
Key *string `json:"key,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
SubType *string `json:"subType,omitempty"`
|
||||
}
|
||||
|
||||
func (o *Field) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *Field) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *Field) GetType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
func (o *Field) GetSubType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.SubType
|
||||
}
|
||||
|
||||
type GetLibraryType struct {
|
||||
Key *string `json:"key,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
Active *bool `json:"active,omitempty"`
|
||||
Filter []Filter `json:"Filter,omitempty"`
|
||||
Sort []Sort `json:"Sort,omitempty"`
|
||||
Field []Field `json:"Field,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryType) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *GetLibraryType) GetType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
func (o *GetLibraryType) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *GetLibraryType) GetActive() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Active
|
||||
}
|
||||
|
||||
func (o *GetLibraryType) GetFilter() []Filter {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Filter
|
||||
}
|
||||
|
||||
func (o *GetLibraryType) GetSort() []Sort {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Sort
|
||||
}
|
||||
|
||||
func (o *GetLibraryType) GetField() []Field {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Field
|
||||
}
|
||||
|
||||
type Operator struct {
|
||||
Key *string `json:"key,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
}
|
||||
|
||||
func (o *Operator) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *Operator) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
type FieldType struct {
|
||||
Type *string `json:"type,omitempty"`
|
||||
Operator []Operator `json:"Operator,omitempty"`
|
||||
}
|
||||
|
||||
func (o *FieldType) GetType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
func (o *FieldType) GetOperator() []Operator {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Operator
|
||||
}
|
||||
|
||||
type GetLibraryMediaContainer struct {
|
||||
Size *int `json:"size,omitempty"`
|
||||
AllowSync *bool `json:"allowSync,omitempty"`
|
||||
Art *string `json:"art,omitempty"`
|
||||
Content *string `json:"content,omitempty"`
|
||||
Identifier *string `json:"identifier,omitempty"`
|
||||
LibrarySectionID *int `json:"librarySectionID,omitempty"`
|
||||
MediaTagPrefix *string `json:"mediaTagPrefix,omitempty"`
|
||||
MediaTagVersion *int `json:"mediaTagVersion,omitempty"`
|
||||
Thumb *string `json:"thumb,omitempty"`
|
||||
Title1 *string `json:"title1,omitempty"`
|
||||
ViewGroup *string `json:"viewGroup,omitempty"`
|
||||
ViewMode *int `json:"viewMode,omitempty"`
|
||||
Directory []GetLibraryDirectory `json:"Directory,omitempty"`
|
||||
Type []GetLibraryType `json:"Type,omitempty"`
|
||||
FieldType []FieldType `json:"FieldType,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryMediaContainer) GetSize() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetLibraryMediaContainer) GetAllowSync() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AllowSync
|
||||
}
|
||||
|
||||
func (o *GetLibraryMediaContainer) GetArt() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Art
|
||||
}
|
||||
|
||||
func (o *GetLibraryMediaContainer) GetContent() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Content
|
||||
}
|
||||
|
||||
func (o *GetLibraryMediaContainer) GetIdentifier() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Identifier
|
||||
}
|
||||
|
||||
func (o *GetLibraryMediaContainer) GetLibrarySectionID() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionID
|
||||
}
|
||||
|
||||
func (o *GetLibraryMediaContainer) GetMediaTagPrefix() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaTagPrefix
|
||||
}
|
||||
|
||||
func (o *GetLibraryMediaContainer) GetMediaTagVersion() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaTagVersion
|
||||
}
|
||||
|
||||
func (o *GetLibraryMediaContainer) GetThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Thumb
|
||||
}
|
||||
|
||||
func (o *GetLibraryMediaContainer) GetTitle1() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title1
|
||||
}
|
||||
|
||||
func (o *GetLibraryMediaContainer) GetViewGroup() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ViewGroup
|
||||
}
|
||||
|
||||
func (o *GetLibraryMediaContainer) GetViewMode() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ViewMode
|
||||
}
|
||||
|
||||
func (o *GetLibraryMediaContainer) GetDirectory() []GetLibraryDirectory {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Directory
|
||||
}
|
||||
|
||||
func (o *GetLibraryMediaContainer) GetType() []GetLibraryType {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
func (o *GetLibraryMediaContainer) GetFieldType() []FieldType {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FieldType
|
||||
}
|
||||
|
||||
// GetLibraryResponseBody - The details of the library
|
||||
type GetLibraryResponseBody struct {
|
||||
MediaContainer *GetLibraryMediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryResponseBody) GetMediaContainer() *GetLibraryMediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type GetLibraryResponse 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
|
||||
// The details of the library
|
||||
TwoHundredApplicationJSONObject *GetLibraryResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *GetLibraryLibraryResponseBody
|
||||
}
|
||||
|
||||
func (o *GetLibraryResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetLibraryResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetLibraryResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetLibraryResponse) GetTwoHundredApplicationJSONObject() *GetLibraryResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *GetLibraryResponse) GetFourHundredAndOneApplicationJSONObject() *GetLibraryLibraryResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
889
internal/sdk/models/operations/getlibraryhubs.go
Normal file
889
internal/sdk/models/operations/getlibraryhubs.go
Normal file
@@ -0,0 +1,889 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/LukeHagar/terraform-provider-PlexAPI/internal/sdk/internal/utils"
|
||||
"github.com/LukeHagar/terraform-provider-PlexAPI/internal/sdk/types"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// QueryParamOnlyTransient - Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added).
|
||||
type QueryParamOnlyTransient int64
|
||||
|
||||
const (
|
||||
QueryParamOnlyTransientZero QueryParamOnlyTransient = 0
|
||||
QueryParamOnlyTransientOne QueryParamOnlyTransient = 1
|
||||
)
|
||||
|
||||
func (e QueryParamOnlyTransient) ToPointer() *QueryParamOnlyTransient {
|
||||
return &e
|
||||
}
|
||||
|
||||
func (e *QueryParamOnlyTransient) UnmarshalJSON(data []byte) error {
|
||||
var v int64
|
||||
if err := json.Unmarshal(data, &v); err != nil {
|
||||
return err
|
||||
}
|
||||
switch v {
|
||||
case 0:
|
||||
fallthrough
|
||||
case 1:
|
||||
*e = QueryParamOnlyTransient(v)
|
||||
return nil
|
||||
default:
|
||||
return fmt.Errorf("invalid value for QueryParamOnlyTransient: %v", v)
|
||||
}
|
||||
}
|
||||
|
||||
type GetLibraryHubsRequest struct {
|
||||
// the Id of the library to query
|
||||
SectionID float64 `pathParam:"style=simple,explode=false,name=sectionId"`
|
||||
// The number of items to return with each hub.
|
||||
Count *float64 `queryParam:"style=form,explode=true,name=count"`
|
||||
// Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added).
|
||||
OnlyTransient *QueryParamOnlyTransient `queryParam:"style=form,explode=true,name=onlyTransient"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsRequest) GetSectionID() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.SectionID
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsRequest) GetCount() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Count
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsRequest) GetOnlyTransient() *QueryParamOnlyTransient {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.OnlyTransient
|
||||
}
|
||||
|
||||
type GetLibraryHubsErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetLibraryHubsHubsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetLibraryHubsHubsResponseBody struct {
|
||||
Errors []GetLibraryHubsErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsHubsResponseBody) GetErrors() []GetLibraryHubsErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type GetLibraryHubsPart struct {
|
||||
ID *int `json:"id,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
Duration *int `json:"duration,omitempty"`
|
||||
File *string `json:"file,omitempty"`
|
||||
Size *int `json:"size,omitempty"`
|
||||
AudioProfile *string `json:"audioProfile,omitempty"`
|
||||
Container *string `json:"container,omitempty"`
|
||||
Has64bitOffsets *bool `json:"has64bitOffsets,omitempty"`
|
||||
OptimizedForStreaming *bool `json:"optimizedForStreaming,omitempty"`
|
||||
VideoProfile *string `json:"videoProfile,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsPart) GetID() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ID
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsPart) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsPart) GetDuration() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsPart) GetFile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.File
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsPart) GetSize() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsPart) GetAudioProfile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioProfile
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsPart) GetContainer() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Container
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsPart) GetHas64bitOffsets() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Has64bitOffsets
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsPart) GetOptimizedForStreaming() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.OptimizedForStreaming
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsPart) GetVideoProfile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoProfile
|
||||
}
|
||||
|
||||
type GetLibraryHubsMedia struct {
|
||||
ID *int `json:"id,omitempty"`
|
||||
Duration *int `json:"duration,omitempty"`
|
||||
Bitrate *int `json:"bitrate,omitempty"`
|
||||
Width *int `json:"width,omitempty"`
|
||||
Height *int `json:"height,omitempty"`
|
||||
AspectRatio *float64 `json:"aspectRatio,omitempty"`
|
||||
AudioChannels *int `json:"audioChannels,omitempty"`
|
||||
AudioCodec *string `json:"audioCodec,omitempty"`
|
||||
VideoCodec *string `json:"videoCodec,omitempty"`
|
||||
VideoResolution *string `json:"videoResolution,omitempty"`
|
||||
Container *string `json:"container,omitempty"`
|
||||
VideoFrameRate *string `json:"videoFrameRate,omitempty"`
|
||||
OptimizedForStreaming *int `json:"optimizedForStreaming,omitempty"`
|
||||
AudioProfile *string `json:"audioProfile,omitempty"`
|
||||
Has64bitOffsets *bool `json:"has64bitOffsets,omitempty"`
|
||||
VideoProfile *string `json:"videoProfile,omitempty"`
|
||||
Part []GetLibraryHubsPart `json:"Part,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMedia) GetID() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ID
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMedia) GetDuration() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMedia) GetBitrate() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Bitrate
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMedia) GetWidth() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Width
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMedia) GetHeight() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Height
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMedia) GetAspectRatio() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AspectRatio
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMedia) GetAudioChannels() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioChannels
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMedia) GetAudioCodec() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioCodec
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMedia) GetVideoCodec() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoCodec
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMedia) GetVideoResolution() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoResolution
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMedia) GetContainer() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Container
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMedia) GetVideoFrameRate() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoFrameRate
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMedia) GetOptimizedForStreaming() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.OptimizedForStreaming
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMedia) GetAudioProfile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioProfile
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMedia) GetHas64bitOffsets() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Has64bitOffsets
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMedia) GetVideoProfile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoProfile
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMedia) GetPart() []GetLibraryHubsPart {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Part
|
||||
}
|
||||
|
||||
type GetLibraryHubsGenre struct {
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsGenre) GetTag() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tag
|
||||
}
|
||||
|
||||
type GetLibraryHubsCountry struct {
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsCountry) GetTag() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tag
|
||||
}
|
||||
|
||||
type GetLibraryHubsDirector struct {
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsDirector) GetTag() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tag
|
||||
}
|
||||
|
||||
type GetLibraryHubsRole struct {
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsRole) GetTag() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tag
|
||||
}
|
||||
|
||||
type GetLibraryHubsWriter struct {
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsWriter) GetTag() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tag
|
||||
}
|
||||
|
||||
type GetLibraryHubsMetadata struct {
|
||||
RatingKey *string `json:"ratingKey,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
GUID *string `json:"guid,omitempty"`
|
||||
Studio *string `json:"studio,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
LibrarySectionTitle *string `json:"librarySectionTitle,omitempty"`
|
||||
LibrarySectionID *int `json:"librarySectionID,omitempty"`
|
||||
LibrarySectionKey *string `json:"librarySectionKey,omitempty"`
|
||||
ContentRating *string `json:"contentRating,omitempty"`
|
||||
Summary *string `json:"summary,omitempty"`
|
||||
Rating *float64 `json:"rating,omitempty"`
|
||||
AudienceRating *float64 `json:"audienceRating,omitempty"`
|
||||
ViewCount *int `json:"viewCount,omitempty"`
|
||||
LastViewedAt *int `json:"lastViewedAt,omitempty"`
|
||||
Year *int `json:"year,omitempty"`
|
||||
Tagline *string `json:"tagline,omitempty"`
|
||||
Thumb *string `json:"thumb,omitempty"`
|
||||
Art *string `json:"art,omitempty"`
|
||||
Duration *int `json:"duration,omitempty"`
|
||||
OriginallyAvailableAt *types.Date `json:"originallyAvailableAt,omitempty"`
|
||||
AddedAt *int `json:"addedAt,omitempty"`
|
||||
UpdatedAt *int `json:"updatedAt,omitempty"`
|
||||
AudienceRatingImage *string `json:"audienceRatingImage,omitempty"`
|
||||
PrimaryExtraKey *string `json:"primaryExtraKey,omitempty"`
|
||||
RatingImage *string `json:"ratingImage,omitempty"`
|
||||
Media []GetLibraryHubsMedia `json:"Media,omitempty"`
|
||||
Genre []GetLibraryHubsGenre `json:"Genre,omitempty"`
|
||||
Country []GetLibraryHubsCountry `json:"Country,omitempty"`
|
||||
Director []GetLibraryHubsDirector `json:"Director,omitempty"`
|
||||
Role []GetLibraryHubsRole `json:"Role,omitempty"`
|
||||
Writer []GetLibraryHubsWriter `json:"Writer,omitempty"`
|
||||
SkipCount *int `json:"skipCount,omitempty"`
|
||||
ChapterSource *string `json:"chapterSource,omitempty"`
|
||||
}
|
||||
|
||||
func (g GetLibraryHubsMetadata) MarshalJSON() ([]byte, error) {
|
||||
return utils.MarshalJSON(g, "", false)
|
||||
}
|
||||
|
||||
func (g *GetLibraryHubsMetadata) UnmarshalJSON(data []byte) error {
|
||||
if err := utils.UnmarshalJSON(data, &g, "", false, false); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetRatingKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RatingKey
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetGUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GUID
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetStudio() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Studio
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetLibrarySectionTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionTitle
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetLibrarySectionID() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionID
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetLibrarySectionKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionKey
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetContentRating() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ContentRating
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetSummary() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Summary
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetRating() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Rating
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetAudienceRating() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudienceRating
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetViewCount() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ViewCount
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetLastViewedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LastViewedAt
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetYear() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Year
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetTagline() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tagline
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Thumb
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetArt() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Art
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetDuration() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetOriginallyAvailableAt() *types.Date {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.OriginallyAvailableAt
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetAddedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AddedAt
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetUpdatedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.UpdatedAt
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetAudienceRatingImage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudienceRatingImage
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetPrimaryExtraKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.PrimaryExtraKey
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetRatingImage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RatingImage
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetMedia() []GetLibraryHubsMedia {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Media
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetGenre() []GetLibraryHubsGenre {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Genre
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetCountry() []GetLibraryHubsCountry {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Country
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetDirector() []GetLibraryHubsDirector {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Director
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetRole() []GetLibraryHubsRole {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Role
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetWriter() []GetLibraryHubsWriter {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Writer
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetSkipCount() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.SkipCount
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMetadata) GetChapterSource() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ChapterSource
|
||||
}
|
||||
|
||||
type GetLibraryHubsHub struct {
|
||||
Key *string `json:"key,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
HubIdentifier *string `json:"hubIdentifier,omitempty"`
|
||||
Context *string `json:"context,omitempty"`
|
||||
Size *int `json:"size,omitempty"`
|
||||
More *bool `json:"more,omitempty"`
|
||||
Style *string `json:"style,omitempty"`
|
||||
HubKey *string `json:"hubKey,omitempty"`
|
||||
Metadata []GetLibraryHubsMetadata `json:"Metadata,omitempty"`
|
||||
Promoted *bool `json:"promoted,omitempty"`
|
||||
Random *bool `json:"random,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsHub) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsHub) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsHub) GetType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsHub) GetHubIdentifier() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.HubIdentifier
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsHub) GetContext() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Context
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsHub) GetSize() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsHub) GetMore() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.More
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsHub) GetStyle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Style
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsHub) GetHubKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.HubKey
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsHub) GetMetadata() []GetLibraryHubsMetadata {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Metadata
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsHub) GetPromoted() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Promoted
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsHub) GetRandom() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Random
|
||||
}
|
||||
|
||||
type GetLibraryHubsMediaContainer struct {
|
||||
Size *int `json:"size,omitempty"`
|
||||
AllowSync *bool `json:"allowSync,omitempty"`
|
||||
Identifier *string `json:"identifier,omitempty"`
|
||||
LibrarySectionID *int `json:"librarySectionID,omitempty"`
|
||||
LibrarySectionTitle *string `json:"librarySectionTitle,omitempty"`
|
||||
LibrarySectionUUID *string `json:"librarySectionUUID,omitempty"`
|
||||
Hub []GetLibraryHubsHub `json:"Hub,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMediaContainer) GetSize() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMediaContainer) GetAllowSync() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AllowSync
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMediaContainer) GetIdentifier() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Identifier
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMediaContainer) GetLibrarySectionID() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionID
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMediaContainer) GetLibrarySectionTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionTitle
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMediaContainer) GetLibrarySectionUUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionUUID
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsMediaContainer) GetHub() []GetLibraryHubsHub {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Hub
|
||||
}
|
||||
|
||||
// GetLibraryHubsResponseBody - The hubs specific to the library
|
||||
type GetLibraryHubsResponseBody struct {
|
||||
MediaContainer *GetLibraryHubsMediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsResponseBody) GetMediaContainer() *GetLibraryHubsMediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type GetLibraryHubsResponse 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
|
||||
// The hubs specific to the library
|
||||
TwoHundredApplicationJSONObject *GetLibraryHubsResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *GetLibraryHubsHubsResponseBody
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsResponse) GetTwoHundredApplicationJSONObject() *GetLibraryHubsResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *GetLibraryHubsResponse) GetFourHundredAndOneApplicationJSONObject() *GetLibraryHubsHubsResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
992
internal/sdk/models/operations/getlibraryitems.go
Normal file
992
internal/sdk/models/operations/getlibraryitems.go
Normal file
@@ -0,0 +1,992 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/LukeHagar/terraform-provider-PlexAPI/internal/sdk/internal/utils"
|
||||
"github.com/LukeHagar/terraform-provider-PlexAPI/internal/sdk/types"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// Tag - A key representing a specific tag within the section.
|
||||
type Tag string
|
||||
|
||||
const (
|
||||
TagAll Tag = "all"
|
||||
TagUnwatched Tag = "unwatched"
|
||||
TagNewest Tag = "newest"
|
||||
TagRecentlyAdded Tag = "recentlyAdded"
|
||||
TagRecentlyViewed Tag = "recentlyViewed"
|
||||
TagOnDeck Tag = "onDeck"
|
||||
TagCollection Tag = "collection"
|
||||
TagEdition Tag = "edition"
|
||||
TagGenre Tag = "genre"
|
||||
TagYear Tag = "year"
|
||||
TagDecade Tag = "decade"
|
||||
TagDirector Tag = "director"
|
||||
TagActor Tag = "actor"
|
||||
TagCountry Tag = "country"
|
||||
TagContentRating Tag = "contentRating"
|
||||
TagRating Tag = "rating"
|
||||
TagResolution Tag = "resolution"
|
||||
TagFirstCharacter Tag = "firstCharacter"
|
||||
TagFolder Tag = "folder"
|
||||
)
|
||||
|
||||
func (e Tag) ToPointer() *Tag {
|
||||
return &e
|
||||
}
|
||||
|
||||
func (e *Tag) UnmarshalJSON(data []byte) error {
|
||||
var v string
|
||||
if err := json.Unmarshal(data, &v); err != nil {
|
||||
return err
|
||||
}
|
||||
switch v {
|
||||
case "all":
|
||||
fallthrough
|
||||
case "unwatched":
|
||||
fallthrough
|
||||
case "newest":
|
||||
fallthrough
|
||||
case "recentlyAdded":
|
||||
fallthrough
|
||||
case "recentlyViewed":
|
||||
fallthrough
|
||||
case "onDeck":
|
||||
fallthrough
|
||||
case "collection":
|
||||
fallthrough
|
||||
case "edition":
|
||||
fallthrough
|
||||
case "genre":
|
||||
fallthrough
|
||||
case "year":
|
||||
fallthrough
|
||||
case "decade":
|
||||
fallthrough
|
||||
case "director":
|
||||
fallthrough
|
||||
case "actor":
|
||||
fallthrough
|
||||
case "country":
|
||||
fallthrough
|
||||
case "contentRating":
|
||||
fallthrough
|
||||
case "rating":
|
||||
fallthrough
|
||||
case "resolution":
|
||||
fallthrough
|
||||
case "firstCharacter":
|
||||
fallthrough
|
||||
case "folder":
|
||||
*e = Tag(v)
|
||||
return nil
|
||||
default:
|
||||
return fmt.Errorf("invalid value for Tag: %v", v)
|
||||
}
|
||||
}
|
||||
|
||||
type GetLibraryItemsRequest struct {
|
||||
// the Id of the library to query
|
||||
SectionID int64 `pathParam:"style=simple,explode=false,name=sectionId"`
|
||||
// A key representing a specific tag within the section.
|
||||
Tag Tag `pathParam:"style=simple,explode=false,name=tag"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsRequest) GetSectionID() int64 {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.SectionID
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsRequest) GetTag() Tag {
|
||||
if o == nil {
|
||||
return Tag("")
|
||||
}
|
||||
return o.Tag
|
||||
}
|
||||
|
||||
type GetLibraryItemsPart struct {
|
||||
ID *int `json:"id,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
Duration *int `json:"duration,omitempty"`
|
||||
File *string `json:"file,omitempty"`
|
||||
Size *int64 `json:"size,omitempty"`
|
||||
Container *string `json:"container,omitempty"`
|
||||
VideoProfile *string `json:"videoProfile,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsPart) GetID() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ID
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsPart) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsPart) GetDuration() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsPart) GetFile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.File
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsPart) GetSize() *int64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsPart) GetContainer() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Container
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsPart) GetVideoProfile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoProfile
|
||||
}
|
||||
|
||||
type GetLibraryItemsMedia struct {
|
||||
ID *int `json:"id,omitempty"`
|
||||
Duration *int `json:"duration,omitempty"`
|
||||
Bitrate *int `json:"bitrate,omitempty"`
|
||||
Width *int `json:"width,omitempty"`
|
||||
Height *int `json:"height,omitempty"`
|
||||
AspectRatio *float64 `json:"aspectRatio,omitempty"`
|
||||
AudioChannels *int `json:"audioChannels,omitempty"`
|
||||
AudioCodec *string `json:"audioCodec,omitempty"`
|
||||
VideoCodec *string `json:"videoCodec,omitempty"`
|
||||
VideoResolution *string `json:"videoResolution,omitempty"`
|
||||
Container *string `json:"container,omitempty"`
|
||||
VideoFrameRate *string `json:"videoFrameRate,omitempty"`
|
||||
VideoProfile *string `json:"videoProfile,omitempty"`
|
||||
Part []GetLibraryItemsPart `json:"Part,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMedia) GetID() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ID
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMedia) GetDuration() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMedia) GetBitrate() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Bitrate
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMedia) GetWidth() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Width
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMedia) GetHeight() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Height
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMedia) GetAspectRatio() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AspectRatio
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMedia) GetAudioChannels() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioChannels
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMedia) GetAudioCodec() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioCodec
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMedia) GetVideoCodec() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoCodec
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMedia) GetVideoResolution() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoResolution
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMedia) GetContainer() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Container
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMedia) GetVideoFrameRate() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoFrameRate
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMedia) GetVideoProfile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoProfile
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMedia) GetPart() []GetLibraryItemsPart {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Part
|
||||
}
|
||||
|
||||
type GetLibraryItemsGenre struct {
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsGenre) GetTag() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tag
|
||||
}
|
||||
|
||||
type GetLibraryItemsCountry struct {
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsCountry) GetTag() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tag
|
||||
}
|
||||
|
||||
type GetLibraryItemsDirector struct {
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsDirector) GetTag() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tag
|
||||
}
|
||||
|
||||
type GetLibraryItemsWriter struct {
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsWriter) GetTag() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tag
|
||||
}
|
||||
|
||||
type GetLibraryItemsRole struct {
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsRole) GetTag() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tag
|
||||
}
|
||||
|
||||
type GetLibraryItemsMetadata struct {
|
||||
RatingKey *string `json:"ratingKey,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
GUID *string `json:"guid,omitempty"`
|
||||
Studio *string `json:"studio,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
ContentRating *string `json:"contentRating,omitempty"`
|
||||
Summary *string `json:"summary,omitempty"`
|
||||
Rating *float64 `json:"rating,omitempty"`
|
||||
AudienceRating *float64 `json:"audienceRating,omitempty"`
|
||||
Year *int `json:"year,omitempty"`
|
||||
Tagline *string `json:"tagline,omitempty"`
|
||||
Thumb *string `json:"thumb,omitempty"`
|
||||
Art *string `json:"art,omitempty"`
|
||||
Duration *int `json:"duration,omitempty"`
|
||||
OriginallyAvailableAt *types.Date `json:"originallyAvailableAt,omitempty"`
|
||||
AddedAt *int `json:"addedAt,omitempty"`
|
||||
UpdatedAt *int `json:"updatedAt,omitempty"`
|
||||
AudienceRatingImage *string `json:"audienceRatingImage,omitempty"`
|
||||
ChapterSource *string `json:"chapterSource,omitempty"`
|
||||
PrimaryExtraKey *string `json:"primaryExtraKey,omitempty"`
|
||||
RatingImage *string `json:"ratingImage,omitempty"`
|
||||
GrandparentRatingKey *string `json:"grandparentRatingKey,omitempty"`
|
||||
GrandparentGUID *string `json:"grandparentGuid,omitempty"`
|
||||
GrandparentKey *string `json:"grandparentKey,omitempty"`
|
||||
GrandparentTitle *string `json:"grandparentTitle,omitempty"`
|
||||
GrandparentThumb *string `json:"grandparentThumb,omitempty"`
|
||||
GrandparentArt *string `json:"grandparentArt,omitempty"`
|
||||
GrandparentTheme *string `json:"grandparentTheme,omitempty"`
|
||||
Media []GetLibraryItemsMedia `json:"Media,omitempty"`
|
||||
Genre []GetLibraryItemsGenre `json:"Genre,omitempty"`
|
||||
Country []GetLibraryItemsCountry `json:"Country,omitempty"`
|
||||
Director []GetLibraryItemsDirector `json:"Director,omitempty"`
|
||||
Writer []GetLibraryItemsWriter `json:"Writer,omitempty"`
|
||||
Role []GetLibraryItemsRole `json:"Role,omitempty"`
|
||||
TitleSort *string `json:"titleSort,omitempty"`
|
||||
ViewCount *int `json:"viewCount,omitempty"`
|
||||
LastViewedAt *int `json:"lastViewedAt,omitempty"`
|
||||
OriginalTitle *string `json:"originalTitle,omitempty"`
|
||||
ViewOffset *int `json:"viewOffset,omitempty"`
|
||||
SkipCount *int `json:"skipCount,omitempty"`
|
||||
Index *int `json:"index,omitempty"`
|
||||
Theme *string `json:"theme,omitempty"`
|
||||
LeafCount *int `json:"leafCount,omitempty"`
|
||||
ViewedLeafCount *int `json:"viewedLeafCount,omitempty"`
|
||||
ChildCount *int `json:"childCount,omitempty"`
|
||||
HasPremiumExtras *string `json:"hasPremiumExtras,omitempty"`
|
||||
HasPremiumPrimaryExtra *string `json:"hasPremiumPrimaryExtra,omitempty"`
|
||||
ParentRatingKey *string `json:"parentRatingKey,omitempty"`
|
||||
ParentGUID *string `json:"parentGuid,omitempty"`
|
||||
ParentStudio *string `json:"parentStudio,omitempty"`
|
||||
ParentKey *string `json:"parentKey,omitempty"`
|
||||
ParentTitle *string `json:"parentTitle,omitempty"`
|
||||
ParentIndex *int `json:"parentIndex,omitempty"`
|
||||
ParentYear *int `json:"parentYear,omitempty"`
|
||||
ParentThumb *string `json:"parentThumb,omitempty"`
|
||||
ParentTheme *string `json:"parentTheme,omitempty"`
|
||||
}
|
||||
|
||||
func (g GetLibraryItemsMetadata) MarshalJSON() ([]byte, error) {
|
||||
return utils.MarshalJSON(g, "", false)
|
||||
}
|
||||
|
||||
func (g *GetLibraryItemsMetadata) UnmarshalJSON(data []byte) error {
|
||||
if err := utils.UnmarshalJSON(data, &g, "", false, false); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetRatingKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RatingKey
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetGUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GUID
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetStudio() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Studio
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetContentRating() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ContentRating
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetSummary() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Summary
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetRating() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Rating
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetAudienceRating() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudienceRating
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetYear() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Year
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetTagline() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tagline
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Thumb
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetArt() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Art
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetDuration() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetOriginallyAvailableAt() *types.Date {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.OriginallyAvailableAt
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetAddedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AddedAt
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetUpdatedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.UpdatedAt
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetAudienceRatingImage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudienceRatingImage
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetChapterSource() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ChapterSource
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetPrimaryExtraKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.PrimaryExtraKey
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetRatingImage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RatingImage
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetGrandparentRatingKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GrandparentRatingKey
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetGrandparentGUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GrandparentGUID
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetGrandparentKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GrandparentKey
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetGrandparentTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GrandparentTitle
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetGrandparentThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GrandparentThumb
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetGrandparentArt() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GrandparentArt
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetGrandparentTheme() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GrandparentTheme
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetMedia() []GetLibraryItemsMedia {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Media
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetGenre() []GetLibraryItemsGenre {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Genre
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetCountry() []GetLibraryItemsCountry {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Country
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetDirector() []GetLibraryItemsDirector {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Director
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetWriter() []GetLibraryItemsWriter {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Writer
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetRole() []GetLibraryItemsRole {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Role
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetTitleSort() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TitleSort
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetViewCount() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ViewCount
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetLastViewedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LastViewedAt
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetOriginalTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.OriginalTitle
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetViewOffset() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ViewOffset
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetSkipCount() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.SkipCount
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetIndex() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Index
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetTheme() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Theme
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetLeafCount() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LeafCount
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetViewedLeafCount() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ViewedLeafCount
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetChildCount() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ChildCount
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetHasPremiumExtras() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.HasPremiumExtras
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetHasPremiumPrimaryExtra() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.HasPremiumPrimaryExtra
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetParentRatingKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentRatingKey
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetParentGUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentGUID
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetParentStudio() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentStudio
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetParentKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentKey
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetParentTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentTitle
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetParentIndex() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentIndex
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetParentYear() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentYear
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetParentThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentThumb
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMetadata) GetParentTheme() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentTheme
|
||||
}
|
||||
|
||||
type GetLibraryItemsMediaContainer struct {
|
||||
Size *int `json:"size,omitempty"`
|
||||
AllowSync *bool `json:"allowSync,omitempty"`
|
||||
Art *string `json:"art,omitempty"`
|
||||
Identifier *string `json:"identifier,omitempty"`
|
||||
LibrarySectionID *int `json:"librarySectionID,omitempty"`
|
||||
LibrarySectionTitle *string `json:"librarySectionTitle,omitempty"`
|
||||
LibrarySectionUUID *string `json:"librarySectionUUID,omitempty"`
|
||||
MediaTagPrefix *string `json:"mediaTagPrefix,omitempty"`
|
||||
MediaTagVersion *int `json:"mediaTagVersion,omitempty"`
|
||||
Thumb *string `json:"thumb,omitempty"`
|
||||
Title1 *string `json:"title1,omitempty"`
|
||||
Title2 *string `json:"title2,omitempty"`
|
||||
ViewGroup *string `json:"viewGroup,omitempty"`
|
||||
ViewMode *int `json:"viewMode,omitempty"`
|
||||
MixedParents *bool `json:"mixedParents,omitempty"`
|
||||
Metadata []GetLibraryItemsMetadata `json:"Metadata,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMediaContainer) GetSize() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMediaContainer) GetAllowSync() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AllowSync
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMediaContainer) GetArt() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Art
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMediaContainer) GetIdentifier() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Identifier
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMediaContainer) GetLibrarySectionID() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionID
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMediaContainer) GetLibrarySectionTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionTitle
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMediaContainer) GetLibrarySectionUUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionUUID
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMediaContainer) GetMediaTagPrefix() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaTagPrefix
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMediaContainer) GetMediaTagVersion() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaTagVersion
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMediaContainer) GetThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Thumb
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMediaContainer) GetTitle1() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title1
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMediaContainer) GetTitle2() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title2
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMediaContainer) GetViewGroup() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ViewGroup
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMediaContainer) GetViewMode() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ViewMode
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMediaContainer) GetMixedParents() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MixedParents
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsMediaContainer) GetMetadata() []GetLibraryItemsMetadata {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Metadata
|
||||
}
|
||||
|
||||
// GetLibraryItemsResponseBody - The contents of the library by section and tag
|
||||
type GetLibraryItemsResponseBody struct {
|
||||
MediaContainer *GetLibraryItemsMediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsResponseBody) GetMediaContainer() *GetLibraryItemsMediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type GetLibraryItemsResponse 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
|
||||
// The contents of the library by section and tag
|
||||
Object *GetLibraryItemsResponseBody
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetLibraryItemsResponse) GetObject() *GetLibraryItemsResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
1234
internal/sdk/models/operations/getmetadata.go
Normal file
1234
internal/sdk/models/operations/getmetadata.go
Normal file
File diff suppressed because it is too large
Load Diff
567
internal/sdk/models/operations/getmetadatachildren.go
Normal file
567
internal/sdk/models/operations/getmetadatachildren.go
Normal file
@@ -0,0 +1,567 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type GetMetadataChildrenRequest struct {
|
||||
// the id of the library item to return the children of.
|
||||
RatingKey float64 `pathParam:"style=simple,explode=false,name=ratingKey"`
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenRequest) GetRatingKey() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.RatingKey
|
||||
}
|
||||
|
||||
type GetMetadataChildrenErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetMetadataChildrenLibraryResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetMetadataChildrenLibraryResponseBody struct {
|
||||
Errors []GetMetadataChildrenErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenLibraryResponseBody) GetErrors() []GetMetadataChildrenErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type GetMetadataChildrenDirectory struct {
|
||||
LeafCount *int `json:"leafCount,omitempty"`
|
||||
Thumb *string `json:"thumb,omitempty"`
|
||||
ViewedLeafCount *int `json:"viewedLeafCount,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenDirectory) GetLeafCount() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LeafCount
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenDirectory) GetThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Thumb
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenDirectory) GetViewedLeafCount() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ViewedLeafCount
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenDirectory) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenDirectory) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
type GetMetadataChildrenMetadata struct {
|
||||
RatingKey *string `json:"ratingKey,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
ParentRatingKey *string `json:"parentRatingKey,omitempty"`
|
||||
GUID *string `json:"guid,omitempty"`
|
||||
ParentGUID *string `json:"parentGuid,omitempty"`
|
||||
ParentStudio *string `json:"parentStudio,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
ParentKey *string `json:"parentKey,omitempty"`
|
||||
ParentTitle *string `json:"parentTitle,omitempty"`
|
||||
Summary *string `json:"summary,omitempty"`
|
||||
Index *int `json:"index,omitempty"`
|
||||
ParentIndex *int `json:"parentIndex,omitempty"`
|
||||
ViewCount *int `json:"viewCount,omitempty"`
|
||||
LastViewedAt *int `json:"lastViewedAt,omitempty"`
|
||||
ParentYear *int `json:"parentYear,omitempty"`
|
||||
Thumb *string `json:"thumb,omitempty"`
|
||||
Art *string `json:"art,omitempty"`
|
||||
ParentThumb *string `json:"parentThumb,omitempty"`
|
||||
ParentTheme *string `json:"parentTheme,omitempty"`
|
||||
LeafCount *int `json:"leafCount,omitempty"`
|
||||
ViewedLeafCount *int `json:"viewedLeafCount,omitempty"`
|
||||
AddedAt *int `json:"addedAt,omitempty"`
|
||||
UpdatedAt *int `json:"updatedAt,omitempty"`
|
||||
UserRating *int `json:"userRating,omitempty"`
|
||||
SkipCount *int `json:"skipCount,omitempty"`
|
||||
LastRatedAt *int `json:"lastRatedAt,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetRatingKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RatingKey
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetParentRatingKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentRatingKey
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetGUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GUID
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetParentGUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentGUID
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetParentStudio() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentStudio
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetParentKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentKey
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetParentTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentTitle
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetSummary() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Summary
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetIndex() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Index
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetParentIndex() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentIndex
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetViewCount() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ViewCount
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetLastViewedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LastViewedAt
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetParentYear() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentYear
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Thumb
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetArt() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Art
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetParentThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentThumb
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetParentTheme() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentTheme
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetLeafCount() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LeafCount
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetViewedLeafCount() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ViewedLeafCount
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetAddedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AddedAt
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetUpdatedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.UpdatedAt
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetUserRating() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.UserRating
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetSkipCount() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.SkipCount
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMetadata) GetLastRatedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LastRatedAt
|
||||
}
|
||||
|
||||
type GetMetadataChildrenMediaContainer struct {
|
||||
Size *int `json:"size,omitempty"`
|
||||
AllowSync *bool `json:"allowSync,omitempty"`
|
||||
Art *string `json:"art,omitempty"`
|
||||
Identifier *string `json:"identifier,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
LibrarySectionID *int `json:"librarySectionID,omitempty"`
|
||||
LibrarySectionTitle *string `json:"librarySectionTitle,omitempty"`
|
||||
LibrarySectionUUID *string `json:"librarySectionUUID,omitempty"`
|
||||
MediaTagPrefix *string `json:"mediaTagPrefix,omitempty"`
|
||||
MediaTagVersion *int `json:"mediaTagVersion,omitempty"`
|
||||
Nocache *bool `json:"nocache,omitempty"`
|
||||
ParentIndex *int `json:"parentIndex,omitempty"`
|
||||
ParentTitle *string `json:"parentTitle,omitempty"`
|
||||
ParentYear *int `json:"parentYear,omitempty"`
|
||||
Summary *string `json:"summary,omitempty"`
|
||||
Theme *string `json:"theme,omitempty"`
|
||||
Thumb *string `json:"thumb,omitempty"`
|
||||
Title1 *string `json:"title1,omitempty"`
|
||||
Title2 *string `json:"title2,omitempty"`
|
||||
ViewGroup *string `json:"viewGroup,omitempty"`
|
||||
ViewMode *int `json:"viewMode,omitempty"`
|
||||
Directory []GetMetadataChildrenDirectory `json:"Directory,omitempty"`
|
||||
Metadata []GetMetadataChildrenMetadata `json:"Metadata,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMediaContainer) GetSize() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMediaContainer) GetAllowSync() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AllowSync
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMediaContainer) GetArt() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Art
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMediaContainer) GetIdentifier() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Identifier
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMediaContainer) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMediaContainer) GetLibrarySectionID() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionID
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMediaContainer) GetLibrarySectionTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionTitle
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMediaContainer) GetLibrarySectionUUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionUUID
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMediaContainer) GetMediaTagPrefix() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaTagPrefix
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMediaContainer) GetMediaTagVersion() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaTagVersion
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMediaContainer) GetNocache() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Nocache
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMediaContainer) GetParentIndex() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentIndex
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMediaContainer) GetParentTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentTitle
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMediaContainer) GetParentYear() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentYear
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMediaContainer) GetSummary() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Summary
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMediaContainer) GetTheme() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Theme
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMediaContainer) GetThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Thumb
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMediaContainer) GetTitle1() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title1
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMediaContainer) GetTitle2() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title2
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMediaContainer) GetViewGroup() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ViewGroup
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMediaContainer) GetViewMode() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ViewMode
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMediaContainer) GetDirectory() []GetMetadataChildrenDirectory {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Directory
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenMediaContainer) GetMetadata() []GetMetadataChildrenMetadata {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Metadata
|
||||
}
|
||||
|
||||
// GetMetadataChildrenResponseBody - The children of the library item.
|
||||
type GetMetadataChildrenResponseBody struct {
|
||||
MediaContainer *GetMetadataChildrenMediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenResponseBody) GetMediaContainer() *GetMetadataChildrenMediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type GetMetadataChildrenResponse 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
|
||||
// The children of the library item.
|
||||
TwoHundredApplicationJSONObject *GetMetadataChildrenResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *GetMetadataChildrenLibraryResponseBody
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenResponse) GetTwoHundredApplicationJSONObject() *GetMetadataChildrenResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *GetMetadataChildrenResponse) GetFourHundredAndOneApplicationJSONObject() *GetMetadataChildrenLibraryResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
205
internal/sdk/models/operations/getmyplexaccount.go
Normal file
205
internal/sdk/models/operations/getmyplexaccount.go
Normal file
@@ -0,0 +1,205 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type GetMyPlexAccountErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetMyPlexAccountErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetMyPlexAccountErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetMyPlexAccountErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetMyPlexAccountServerResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetMyPlexAccountServerResponseBody struct {
|
||||
Errors []GetMyPlexAccountErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetMyPlexAccountServerResponseBody) GetErrors() []GetMyPlexAccountErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type MyPlex struct {
|
||||
AuthToken *string `json:"authToken,omitempty"`
|
||||
Username *string `json:"username,omitempty"`
|
||||
MappingState *string `json:"mappingState,omitempty"`
|
||||
MappingError *string `json:"mappingError,omitempty"`
|
||||
SignInState *string `json:"signInState,omitempty"`
|
||||
PublicAddress *string `json:"publicAddress,omitempty"`
|
||||
PublicPort *float64 `json:"publicPort,omitempty"`
|
||||
PrivateAddress *string `json:"privateAddress,omitempty"`
|
||||
PrivatePort *float64 `json:"privatePort,omitempty"`
|
||||
SubscriptionFeatures *string `json:"subscriptionFeatures,omitempty"`
|
||||
SubscriptionActive *bool `json:"subscriptionActive,omitempty"`
|
||||
SubscriptionState *string `json:"subscriptionState,omitempty"`
|
||||
}
|
||||
|
||||
func (o *MyPlex) GetAuthToken() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AuthToken
|
||||
}
|
||||
|
||||
func (o *MyPlex) GetUsername() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Username
|
||||
}
|
||||
|
||||
func (o *MyPlex) GetMappingState() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MappingState
|
||||
}
|
||||
|
||||
func (o *MyPlex) GetMappingError() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MappingError
|
||||
}
|
||||
|
||||
func (o *MyPlex) GetSignInState() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.SignInState
|
||||
}
|
||||
|
||||
func (o *MyPlex) GetPublicAddress() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.PublicAddress
|
||||
}
|
||||
|
||||
func (o *MyPlex) GetPublicPort() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.PublicPort
|
||||
}
|
||||
|
||||
func (o *MyPlex) GetPrivateAddress() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.PrivateAddress
|
||||
}
|
||||
|
||||
func (o *MyPlex) GetPrivatePort() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.PrivatePort
|
||||
}
|
||||
|
||||
func (o *MyPlex) GetSubscriptionFeatures() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.SubscriptionFeatures
|
||||
}
|
||||
|
||||
func (o *MyPlex) GetSubscriptionActive() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.SubscriptionActive
|
||||
}
|
||||
|
||||
func (o *MyPlex) GetSubscriptionState() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.SubscriptionState
|
||||
}
|
||||
|
||||
// GetMyPlexAccountResponseBody - MyPlex Account
|
||||
type GetMyPlexAccountResponseBody struct {
|
||||
MyPlex *MyPlex `json:"MyPlex,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetMyPlexAccountResponseBody) GetMyPlex() *MyPlex {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MyPlex
|
||||
}
|
||||
|
||||
type GetMyPlexAccountResponse 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
|
||||
// MyPlex Account
|
||||
TwoHundredApplicationJSONObject *GetMyPlexAccountResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *GetMyPlexAccountServerResponseBody
|
||||
}
|
||||
|
||||
func (o *GetMyPlexAccountResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetMyPlexAccountResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetMyPlexAccountResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetMyPlexAccountResponse) GetTwoHundredApplicationJSONObject() *GetMyPlexAccountResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *GetMyPlexAccountResponse) GetFourHundredAndOneApplicationJSONObject() *GetMyPlexAccountServerResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
865
internal/sdk/models/operations/getondeck.go
Normal file
865
internal/sdk/models/operations/getondeck.go
Normal file
@@ -0,0 +1,865 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"github.com/LukeHagar/terraform-provider-PlexAPI/internal/sdk/internal/utils"
|
||||
"net/http"
|
||||
"time"
|
||||
)
|
||||
|
||||
type GetOnDeckErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetOnDeckErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetOnDeckErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetOnDeckErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetOnDeckLibraryResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetOnDeckLibraryResponseBody struct {
|
||||
Errors []GetOnDeckErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetOnDeckLibraryResponseBody) GetErrors() []GetOnDeckErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type GetOnDeckStream struct {
|
||||
ID *float64 `json:"id,omitempty"`
|
||||
StreamType *float64 `json:"streamType,omitempty"`
|
||||
Default *bool `json:"default,omitempty"`
|
||||
Codec *string `json:"codec,omitempty"`
|
||||
Index *float64 `json:"index,omitempty"`
|
||||
Bitrate *float64 `json:"bitrate,omitempty"`
|
||||
Language *string `json:"language,omitempty"`
|
||||
LanguageTag *string `json:"languageTag,omitempty"`
|
||||
LanguageCode *string `json:"languageCode,omitempty"`
|
||||
BitDepth *float64 `json:"bitDepth,omitempty"`
|
||||
ChromaLocation *string `json:"chromaLocation,omitempty"`
|
||||
ChromaSubsampling *string `json:"chromaSubsampling,omitempty"`
|
||||
CodedHeight *float64 `json:"codedHeight,omitempty"`
|
||||
CodedWidth *float64 `json:"codedWidth,omitempty"`
|
||||
ColorRange *string `json:"colorRange,omitempty"`
|
||||
FrameRate *float64 `json:"frameRate,omitempty"`
|
||||
Height *float64 `json:"height,omitempty"`
|
||||
Level *float64 `json:"level,omitempty"`
|
||||
Profile *string `json:"profile,omitempty"`
|
||||
RefFrames *float64 `json:"refFrames,omitempty"`
|
||||
Width *float64 `json:"width,omitempty"`
|
||||
DisplayTitle *string `json:"displayTitle,omitempty"`
|
||||
ExtendedDisplayTitle *string `json:"extendedDisplayTitle,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetOnDeckStream) GetID() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ID
|
||||
}
|
||||
|
||||
func (o *GetOnDeckStream) GetStreamType() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.StreamType
|
||||
}
|
||||
|
||||
func (o *GetOnDeckStream) GetDefault() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Default
|
||||
}
|
||||
|
||||
func (o *GetOnDeckStream) GetCodec() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Codec
|
||||
}
|
||||
|
||||
func (o *GetOnDeckStream) GetIndex() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Index
|
||||
}
|
||||
|
||||
func (o *GetOnDeckStream) GetBitrate() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Bitrate
|
||||
}
|
||||
|
||||
func (o *GetOnDeckStream) GetLanguage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Language
|
||||
}
|
||||
|
||||
func (o *GetOnDeckStream) GetLanguageTag() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LanguageTag
|
||||
}
|
||||
|
||||
func (o *GetOnDeckStream) GetLanguageCode() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LanguageCode
|
||||
}
|
||||
|
||||
func (o *GetOnDeckStream) GetBitDepth() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.BitDepth
|
||||
}
|
||||
|
||||
func (o *GetOnDeckStream) GetChromaLocation() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ChromaLocation
|
||||
}
|
||||
|
||||
func (o *GetOnDeckStream) GetChromaSubsampling() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ChromaSubsampling
|
||||
}
|
||||
|
||||
func (o *GetOnDeckStream) GetCodedHeight() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.CodedHeight
|
||||
}
|
||||
|
||||
func (o *GetOnDeckStream) GetCodedWidth() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.CodedWidth
|
||||
}
|
||||
|
||||
func (o *GetOnDeckStream) GetColorRange() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ColorRange
|
||||
}
|
||||
|
||||
func (o *GetOnDeckStream) GetFrameRate() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FrameRate
|
||||
}
|
||||
|
||||
func (o *GetOnDeckStream) GetHeight() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Height
|
||||
}
|
||||
|
||||
func (o *GetOnDeckStream) GetLevel() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Level
|
||||
}
|
||||
|
||||
func (o *GetOnDeckStream) GetProfile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Profile
|
||||
}
|
||||
|
||||
func (o *GetOnDeckStream) GetRefFrames() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RefFrames
|
||||
}
|
||||
|
||||
func (o *GetOnDeckStream) GetWidth() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Width
|
||||
}
|
||||
|
||||
func (o *GetOnDeckStream) GetDisplayTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.DisplayTitle
|
||||
}
|
||||
|
||||
func (o *GetOnDeckStream) GetExtendedDisplayTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ExtendedDisplayTitle
|
||||
}
|
||||
|
||||
type GetOnDeckPart struct {
|
||||
ID *float64 `json:"id,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
Duration *float64 `json:"duration,omitempty"`
|
||||
File *string `json:"file,omitempty"`
|
||||
Size *float64 `json:"size,omitempty"`
|
||||
AudioProfile *string `json:"audioProfile,omitempty"`
|
||||
Container *string `json:"container,omitempty"`
|
||||
VideoProfile *string `json:"videoProfile,omitempty"`
|
||||
Stream []GetOnDeckStream `json:"Stream,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetOnDeckPart) GetID() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ID
|
||||
}
|
||||
|
||||
func (o *GetOnDeckPart) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *GetOnDeckPart) GetDuration() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *GetOnDeckPart) GetFile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.File
|
||||
}
|
||||
|
||||
func (o *GetOnDeckPart) GetSize() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetOnDeckPart) GetAudioProfile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioProfile
|
||||
}
|
||||
|
||||
func (o *GetOnDeckPart) GetContainer() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Container
|
||||
}
|
||||
|
||||
func (o *GetOnDeckPart) GetVideoProfile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoProfile
|
||||
}
|
||||
|
||||
func (o *GetOnDeckPart) GetStream() []GetOnDeckStream {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Stream
|
||||
}
|
||||
|
||||
type GetOnDeckMedia struct {
|
||||
ID *float64 `json:"id,omitempty"`
|
||||
Duration *float64 `json:"duration,omitempty"`
|
||||
Bitrate *float64 `json:"bitrate,omitempty"`
|
||||
Width *float64 `json:"width,omitempty"`
|
||||
Height *float64 `json:"height,omitempty"`
|
||||
AspectRatio *float64 `json:"aspectRatio,omitempty"`
|
||||
AudioChannels *float64 `json:"audioChannels,omitempty"`
|
||||
AudioCodec *string `json:"audioCodec,omitempty"`
|
||||
VideoCodec *string `json:"videoCodec,omitempty"`
|
||||
VideoResolution *string `json:"videoResolution,omitempty"`
|
||||
Container *string `json:"container,omitempty"`
|
||||
VideoFrameRate *string `json:"videoFrameRate,omitempty"`
|
||||
AudioProfile *string `json:"audioProfile,omitempty"`
|
||||
VideoProfile *string `json:"videoProfile,omitempty"`
|
||||
Part []GetOnDeckPart `json:"Part,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMedia) GetID() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ID
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMedia) GetDuration() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMedia) GetBitrate() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Bitrate
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMedia) GetWidth() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Width
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMedia) GetHeight() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Height
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMedia) GetAspectRatio() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AspectRatio
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMedia) GetAudioChannels() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioChannels
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMedia) GetAudioCodec() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioCodec
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMedia) GetVideoCodec() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoCodec
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMedia) GetVideoResolution() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoResolution
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMedia) GetContainer() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Container
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMedia) GetVideoFrameRate() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoFrameRate
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMedia) GetAudioProfile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioProfile
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMedia) GetVideoProfile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoProfile
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMedia) GetPart() []GetOnDeckPart {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Part
|
||||
}
|
||||
|
||||
type GetOnDeckGuids struct {
|
||||
ID *string `json:"id,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetOnDeckGuids) GetID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ID
|
||||
}
|
||||
|
||||
type GetOnDeckMetadata struct {
|
||||
AllowSync *bool `json:"allowSync,omitempty"`
|
||||
LibrarySectionID *float64 `json:"librarySectionID,omitempty"`
|
||||
LibrarySectionTitle *string `json:"librarySectionTitle,omitempty"`
|
||||
LibrarySectionUUID *string `json:"librarySectionUUID,omitempty"`
|
||||
RatingKey *float64 `json:"ratingKey,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
ParentRatingKey *float64 `json:"parentRatingKey,omitempty"`
|
||||
GrandparentRatingKey *float64 `json:"grandparentRatingKey,omitempty"`
|
||||
GUID *string `json:"guid,omitempty"`
|
||||
ParentGUID *string `json:"parentGuid,omitempty"`
|
||||
GrandparentGUID *string `json:"grandparentGuid,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
GrandparentKey *string `json:"grandparentKey,omitempty"`
|
||||
ParentKey *string `json:"parentKey,omitempty"`
|
||||
LibrarySectionKey *string `json:"librarySectionKey,omitempty"`
|
||||
GrandparentTitle *string `json:"grandparentTitle,omitempty"`
|
||||
ParentTitle *string `json:"parentTitle,omitempty"`
|
||||
ContentRating *string `json:"contentRating,omitempty"`
|
||||
Summary *string `json:"summary,omitempty"`
|
||||
Index *float64 `json:"index,omitempty"`
|
||||
ParentIndex *float64 `json:"parentIndex,omitempty"`
|
||||
LastViewedAt *float64 `json:"lastViewedAt,omitempty"`
|
||||
Year *float64 `json:"year,omitempty"`
|
||||
Thumb *string `json:"thumb,omitempty"`
|
||||
Art *string `json:"art,omitempty"`
|
||||
ParentThumb *string `json:"parentThumb,omitempty"`
|
||||
GrandparentThumb *string `json:"grandparentThumb,omitempty"`
|
||||
GrandparentArt *string `json:"grandparentArt,omitempty"`
|
||||
GrandparentTheme *string `json:"grandparentTheme,omitempty"`
|
||||
Duration *float64 `json:"duration,omitempty"`
|
||||
OriginallyAvailableAt *time.Time `json:"originallyAvailableAt,omitempty"`
|
||||
AddedAt *float64 `json:"addedAt,omitempty"`
|
||||
UpdatedAt *float64 `json:"updatedAt,omitempty"`
|
||||
Media []GetOnDeckMedia `json:"Media,omitempty"`
|
||||
Guids []GetOnDeckGuids `json:"Guid,omitempty"`
|
||||
}
|
||||
|
||||
func (g GetOnDeckMetadata) MarshalJSON() ([]byte, error) {
|
||||
return utils.MarshalJSON(g, "", false)
|
||||
}
|
||||
|
||||
func (g *GetOnDeckMetadata) UnmarshalJSON(data []byte) error {
|
||||
if err := utils.UnmarshalJSON(data, &g, "", false, false); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetAllowSync() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AllowSync
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetLibrarySectionID() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionID
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetLibrarySectionTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionTitle
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetLibrarySectionUUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionUUID
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetRatingKey() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RatingKey
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetParentRatingKey() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentRatingKey
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetGrandparentRatingKey() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GrandparentRatingKey
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetGUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GUID
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetParentGUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentGUID
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetGrandparentGUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GrandparentGUID
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetGrandparentKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GrandparentKey
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetParentKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentKey
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetLibrarySectionKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionKey
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetGrandparentTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GrandparentTitle
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetParentTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentTitle
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetContentRating() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ContentRating
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetSummary() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Summary
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetIndex() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Index
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetParentIndex() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentIndex
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetLastViewedAt() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LastViewedAt
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetYear() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Year
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Thumb
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetArt() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Art
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetParentThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentThumb
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetGrandparentThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GrandparentThumb
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetGrandparentArt() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GrandparentArt
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetGrandparentTheme() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GrandparentTheme
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetDuration() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetOriginallyAvailableAt() *time.Time {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.OriginallyAvailableAt
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetAddedAt() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AddedAt
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetUpdatedAt() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.UpdatedAt
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetMedia() []GetOnDeckMedia {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Media
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMetadata) GetGuids() []GetOnDeckGuids {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Guids
|
||||
}
|
||||
|
||||
type GetOnDeckMediaContainer struct {
|
||||
Size *float64 `json:"size,omitempty"`
|
||||
AllowSync *bool `json:"allowSync,omitempty"`
|
||||
Identifier *string `json:"identifier,omitempty"`
|
||||
MediaTagPrefix *string `json:"mediaTagPrefix,omitempty"`
|
||||
MediaTagVersion *float64 `json:"mediaTagVersion,omitempty"`
|
||||
MixedParents *bool `json:"mixedParents,omitempty"`
|
||||
Metadata []GetOnDeckMetadata `json:"Metadata,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMediaContainer) GetSize() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMediaContainer) GetAllowSync() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AllowSync
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMediaContainer) GetIdentifier() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Identifier
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMediaContainer) GetMediaTagPrefix() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaTagPrefix
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMediaContainer) GetMediaTagVersion() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaTagVersion
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMediaContainer) GetMixedParents() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MixedParents
|
||||
}
|
||||
|
||||
func (o *GetOnDeckMediaContainer) GetMetadata() []GetOnDeckMetadata {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Metadata
|
||||
}
|
||||
|
||||
// GetOnDeckResponseBody - The on Deck content
|
||||
type GetOnDeckResponseBody struct {
|
||||
MediaContainer *GetOnDeckMediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetOnDeckResponseBody) GetMediaContainer() *GetOnDeckMediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type GetOnDeckResponse 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
|
||||
// The on Deck content
|
||||
TwoHundredApplicationJSONObject *GetOnDeckResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *GetOnDeckLibraryResponseBody
|
||||
}
|
||||
|
||||
func (o *GetOnDeckResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetOnDeckResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetOnDeckResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetOnDeckResponse) GetTwoHundredApplicationJSONObject() *GetOnDeckResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *GetOnDeckResponse) GetFourHundredAndOneApplicationJSONObject() *GetOnDeckLibraryResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
337
internal/sdk/models/operations/getpin.go
Normal file
337
internal/sdk/models/operations/getpin.go
Normal file
@@ -0,0 +1,337 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"github.com/LukeHagar/terraform-provider-PlexAPI/internal/sdk/internal/utils"
|
||||
"net/http"
|
||||
"time"
|
||||
)
|
||||
|
||||
var GetPinServerList = []string{
|
||||
"https://plex.tv/api/v2",
|
||||
}
|
||||
|
||||
type GetPinRequest struct {
|
||||
// Determines the kind of code returned by the API call
|
||||
// Strong codes are used for Pin authentication flows
|
||||
// Non-Strong codes are used for `Plex.tv/link`
|
||||
//
|
||||
Strong *bool `default:"false" queryParam:"style=form,explode=true,name=strong"`
|
||||
// The unique identifier for the client application
|
||||
// This is used to track the client application and its usage
|
||||
// (UUID, serial number, or other number unique per device)
|
||||
//
|
||||
XPlexClientIdentifier string `header:"style=simple,explode=false,name=X-Plex-Client-Identifier"`
|
||||
}
|
||||
|
||||
func (g GetPinRequest) MarshalJSON() ([]byte, error) {
|
||||
return utils.MarshalJSON(g, "", false)
|
||||
}
|
||||
|
||||
func (g *GetPinRequest) UnmarshalJSON(data []byte) error {
|
||||
if err := utils.UnmarshalJSON(data, &g, "", false, false); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (o *GetPinRequest) GetStrong() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Strong
|
||||
}
|
||||
|
||||
func (o *GetPinRequest) GetXPlexClientIdentifier() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.XPlexClientIdentifier
|
||||
}
|
||||
|
||||
type GetPinErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetPinErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetPinErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetPinErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetPinPlexResponseBody - X-Plex-Client-Identifier is missing
|
||||
type GetPinPlexResponseBody struct {
|
||||
Errors []GetPinErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetPinPlexResponseBody) GetErrors() []GetPinErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type Location struct {
|
||||
Code *string `json:"code,omitempty"`
|
||||
EuropeanUnionMember *bool `json:"european_union_member,omitempty"`
|
||||
ContinentCode *string `json:"continent_code,omitempty"`
|
||||
Country *string `json:"country,omitempty"`
|
||||
City *string `json:"city,omitempty"`
|
||||
TimeZone *string `json:"time_zone,omitempty"`
|
||||
PostalCode *float64 `json:"postal_code,omitempty"`
|
||||
InPrivacyRestrictedCountry *bool `json:"in_privacy_restricted_country,omitempty"`
|
||||
Subdivisions *string `json:"subdivisions,omitempty"`
|
||||
Coordinates *string `json:"coordinates,omitempty"`
|
||||
}
|
||||
|
||||
func (o *Location) GetCode() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *Location) GetEuropeanUnionMember() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.EuropeanUnionMember
|
||||
}
|
||||
|
||||
func (o *Location) GetContinentCode() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ContinentCode
|
||||
}
|
||||
|
||||
func (o *Location) GetCountry() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Country
|
||||
}
|
||||
|
||||
func (o *Location) GetCity() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.City
|
||||
}
|
||||
|
||||
func (o *Location) GetTimeZone() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TimeZone
|
||||
}
|
||||
|
||||
func (o *Location) GetPostalCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.PostalCode
|
||||
}
|
||||
|
||||
func (o *Location) GetInPrivacyRestrictedCountry() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.InPrivacyRestrictedCountry
|
||||
}
|
||||
|
||||
func (o *Location) GetSubdivisions() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Subdivisions
|
||||
}
|
||||
|
||||
func (o *Location) GetCoordinates() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Coordinates
|
||||
}
|
||||
|
||||
// GetPinResponseBody - The Pin
|
||||
type GetPinResponseBody struct {
|
||||
// PinID for use with authentication
|
||||
ID *float64 `json:"id,omitempty"`
|
||||
Code *string `json:"code,omitempty"`
|
||||
Product *string `json:"product,omitempty"`
|
||||
Trusted *bool `json:"trusted,omitempty"`
|
||||
// a link to a QR code hosted on plex.tv
|
||||
// The QR code redirects to the relevant `plex.tv/link` authentication page
|
||||
// Which then prompts the user for the 4 Digit Link Pin
|
||||
//
|
||||
Qr *string `json:"qr,omitempty"`
|
||||
ClientIdentifier *string `json:"clientIdentifier,omitempty"`
|
||||
Location *Location `json:"location,omitempty"`
|
||||
ExpiresIn *float64 `json:"expiresIn,omitempty"`
|
||||
CreatedAt *time.Time `json:"createdAt,omitempty"`
|
||||
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
|
||||
AuthToken *string `json:"authToken,omitempty"`
|
||||
NewRegistration *string `json:"newRegistration,omitempty"`
|
||||
}
|
||||
|
||||
func (g GetPinResponseBody) MarshalJSON() ([]byte, error) {
|
||||
return utils.MarshalJSON(g, "", false)
|
||||
}
|
||||
|
||||
func (g *GetPinResponseBody) UnmarshalJSON(data []byte) error {
|
||||
if err := utils.UnmarshalJSON(data, &g, "", false, false); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (o *GetPinResponseBody) GetID() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ID
|
||||
}
|
||||
|
||||
func (o *GetPinResponseBody) GetCode() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetPinResponseBody) GetProduct() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Product
|
||||
}
|
||||
|
||||
func (o *GetPinResponseBody) GetTrusted() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Trusted
|
||||
}
|
||||
|
||||
func (o *GetPinResponseBody) GetQr() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Qr
|
||||
}
|
||||
|
||||
func (o *GetPinResponseBody) GetClientIdentifier() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ClientIdentifier
|
||||
}
|
||||
|
||||
func (o *GetPinResponseBody) GetLocation() *Location {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Location
|
||||
}
|
||||
|
||||
func (o *GetPinResponseBody) GetExpiresIn() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ExpiresIn
|
||||
}
|
||||
|
||||
func (o *GetPinResponseBody) GetCreatedAt() *time.Time {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.CreatedAt
|
||||
}
|
||||
|
||||
func (o *GetPinResponseBody) GetExpiresAt() *time.Time {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ExpiresAt
|
||||
}
|
||||
|
||||
func (o *GetPinResponseBody) GetAuthToken() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AuthToken
|
||||
}
|
||||
|
||||
func (o *GetPinResponseBody) GetNewRegistration() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.NewRegistration
|
||||
}
|
||||
|
||||
type GetPinResponse 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
|
||||
// The Pin
|
||||
TwoHundredApplicationJSONObject *GetPinResponseBody
|
||||
// X-Plex-Client-Identifier is missing
|
||||
FourHundredApplicationJSONObject *GetPinPlexResponseBody
|
||||
}
|
||||
|
||||
func (o *GetPinResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetPinResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetPinResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetPinResponse) GetTwoHundredApplicationJSONObject() *GetPinResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *GetPinResponse) GetFourHundredApplicationJSONObject() *GetPinPlexResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredApplicationJSONObject
|
||||
}
|
||||
260
internal/sdk/models/operations/getplaylist.go
Normal file
260
internal/sdk/models/operations/getplaylist.go
Normal file
@@ -0,0 +1,260 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type GetPlaylistRequest struct {
|
||||
// the ID of the playlist
|
||||
PlaylistID float64 `pathParam:"style=simple,explode=false,name=playlistID"`
|
||||
}
|
||||
|
||||
func (o *GetPlaylistRequest) GetPlaylistID() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.PlaylistID
|
||||
}
|
||||
|
||||
type GetPlaylistErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetPlaylistErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetPlaylistErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetPlaylistErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetPlaylistPlaylistsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetPlaylistPlaylistsResponseBody struct {
|
||||
Errors []GetPlaylistErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetPlaylistPlaylistsResponseBody) GetErrors() []GetPlaylistErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type GetPlaylistMetadata struct {
|
||||
Content *string `json:"content,omitempty"`
|
||||
RatingKey *string `json:"ratingKey,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
GUID *string `json:"guid,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
Summary *string `json:"summary,omitempty"`
|
||||
Smart *bool `json:"smart,omitempty"`
|
||||
PlaylistType *string `json:"playlistType,omitempty"`
|
||||
Composite *string `json:"composite,omitempty"`
|
||||
Icon *string `json:"icon,omitempty"`
|
||||
Duration *int `json:"duration,omitempty"`
|
||||
LeafCount *int `json:"leafCount,omitempty"`
|
||||
AddedAt *int `json:"addedAt,omitempty"`
|
||||
UpdatedAt *int `json:"updatedAt,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetPlaylistMetadata) GetContent() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Content
|
||||
}
|
||||
|
||||
func (o *GetPlaylistMetadata) GetRatingKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RatingKey
|
||||
}
|
||||
|
||||
func (o *GetPlaylistMetadata) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *GetPlaylistMetadata) GetGUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GUID
|
||||
}
|
||||
|
||||
func (o *GetPlaylistMetadata) GetType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
func (o *GetPlaylistMetadata) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *GetPlaylistMetadata) GetSummary() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Summary
|
||||
}
|
||||
|
||||
func (o *GetPlaylistMetadata) GetSmart() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Smart
|
||||
}
|
||||
|
||||
func (o *GetPlaylistMetadata) GetPlaylistType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.PlaylistType
|
||||
}
|
||||
|
||||
func (o *GetPlaylistMetadata) GetComposite() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Composite
|
||||
}
|
||||
|
||||
func (o *GetPlaylistMetadata) GetIcon() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Icon
|
||||
}
|
||||
|
||||
func (o *GetPlaylistMetadata) GetDuration() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *GetPlaylistMetadata) GetLeafCount() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LeafCount
|
||||
}
|
||||
|
||||
func (o *GetPlaylistMetadata) GetAddedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AddedAt
|
||||
}
|
||||
|
||||
func (o *GetPlaylistMetadata) GetUpdatedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.UpdatedAt
|
||||
}
|
||||
|
||||
type GetPlaylistMediaContainer struct {
|
||||
Size *int `json:"size,omitempty"`
|
||||
Metadata []GetPlaylistMetadata `json:"Metadata,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetPlaylistMediaContainer) GetSize() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetPlaylistMediaContainer) GetMetadata() []GetPlaylistMetadata {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Metadata
|
||||
}
|
||||
|
||||
// GetPlaylistResponseBody - The playlist
|
||||
type GetPlaylistResponseBody struct {
|
||||
MediaContainer *GetPlaylistMediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetPlaylistResponseBody) GetMediaContainer() *GetPlaylistMediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type GetPlaylistResponse 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
|
||||
// The playlist
|
||||
TwoHundredApplicationJSONObject *GetPlaylistResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *GetPlaylistPlaylistsResponseBody
|
||||
}
|
||||
|
||||
func (o *GetPlaylistResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetPlaylistResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetPlaylistResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetPlaylistResponse) GetTwoHundredApplicationJSONObject() *GetPlaylistResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *GetPlaylistResponse) GetFourHundredAndOneApplicationJSONObject() *GetPlaylistPlaylistsResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
751
internal/sdk/models/operations/getplaylistcontents.go
Normal file
751
internal/sdk/models/operations/getplaylistcontents.go
Normal file
@@ -0,0 +1,751 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"github.com/LukeHagar/terraform-provider-PlexAPI/internal/sdk/internal/utils"
|
||||
"github.com/LukeHagar/terraform-provider-PlexAPI/internal/sdk/types"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type GetPlaylistContentsRequest struct {
|
||||
// the ID of the playlist
|
||||
PlaylistID float64 `pathParam:"style=simple,explode=false,name=playlistID"`
|
||||
// the metadata type of the item to return
|
||||
Type float64 `queryParam:"style=form,explode=true,name=type"`
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsRequest) GetPlaylistID() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.PlaylistID
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsRequest) GetType() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
type GetPlaylistContentsErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetPlaylistContentsPlaylistsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetPlaylistContentsPlaylistsResponseBody struct {
|
||||
Errors []GetPlaylistContentsErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsPlaylistsResponseBody) GetErrors() []GetPlaylistContentsErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type GetPlaylistContentsPart struct {
|
||||
ID *int `json:"id,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
Duration *int `json:"duration,omitempty"`
|
||||
File *string `json:"file,omitempty"`
|
||||
Size *int `json:"size,omitempty"`
|
||||
AudioProfile *string `json:"audioProfile,omitempty"`
|
||||
Container *string `json:"container,omitempty"`
|
||||
Has64bitOffsets *bool `json:"has64bitOffsets,omitempty"`
|
||||
OptimizedForStreaming *bool `json:"optimizedForStreaming,omitempty"`
|
||||
VideoProfile *string `json:"videoProfile,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsPart) GetID() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ID
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsPart) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsPart) GetDuration() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsPart) GetFile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.File
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsPart) GetSize() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsPart) GetAudioProfile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioProfile
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsPart) GetContainer() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Container
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsPart) GetHas64bitOffsets() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Has64bitOffsets
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsPart) GetOptimizedForStreaming() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.OptimizedForStreaming
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsPart) GetVideoProfile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoProfile
|
||||
}
|
||||
|
||||
type GetPlaylistContentsMedia struct {
|
||||
ID *int `json:"id,omitempty"`
|
||||
Duration *int `json:"duration,omitempty"`
|
||||
Bitrate *int `json:"bitrate,omitempty"`
|
||||
Width *int `json:"width,omitempty"`
|
||||
Height *int `json:"height,omitempty"`
|
||||
AspectRatio *float64 `json:"aspectRatio,omitempty"`
|
||||
AudioChannels *int `json:"audioChannels,omitempty"`
|
||||
AudioCodec *string `json:"audioCodec,omitempty"`
|
||||
VideoCodec *string `json:"videoCodec,omitempty"`
|
||||
VideoResolution *string `json:"videoResolution,omitempty"`
|
||||
Container *string `json:"container,omitempty"`
|
||||
VideoFrameRate *string `json:"videoFrameRate,omitempty"`
|
||||
OptimizedForStreaming *int `json:"optimizedForStreaming,omitempty"`
|
||||
AudioProfile *string `json:"audioProfile,omitempty"`
|
||||
Has64bitOffsets *bool `json:"has64bitOffsets,omitempty"`
|
||||
VideoProfile *string `json:"videoProfile,omitempty"`
|
||||
Part []GetPlaylistContentsPart `json:"Part,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMedia) GetID() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ID
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMedia) GetDuration() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMedia) GetBitrate() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Bitrate
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMedia) GetWidth() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Width
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMedia) GetHeight() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Height
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMedia) GetAspectRatio() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AspectRatio
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMedia) GetAudioChannels() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioChannels
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMedia) GetAudioCodec() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioCodec
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMedia) GetVideoCodec() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoCodec
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMedia) GetVideoResolution() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoResolution
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMedia) GetContainer() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Container
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMedia) GetVideoFrameRate() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoFrameRate
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMedia) GetOptimizedForStreaming() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.OptimizedForStreaming
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMedia) GetAudioProfile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioProfile
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMedia) GetHas64bitOffsets() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Has64bitOffsets
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMedia) GetVideoProfile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoProfile
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMedia) GetPart() []GetPlaylistContentsPart {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Part
|
||||
}
|
||||
|
||||
type GetPlaylistContentsGenre struct {
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsGenre) GetTag() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tag
|
||||
}
|
||||
|
||||
type GetPlaylistContentsCountry struct {
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsCountry) GetTag() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tag
|
||||
}
|
||||
|
||||
type GetPlaylistContentsDirector struct {
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsDirector) GetTag() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tag
|
||||
}
|
||||
|
||||
type GetPlaylistContentsWriter struct {
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsWriter) GetTag() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tag
|
||||
}
|
||||
|
||||
type GetPlaylistContentsRole struct {
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsRole) GetTag() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tag
|
||||
}
|
||||
|
||||
type GetPlaylistContentsMetadata struct {
|
||||
RatingKey *string `json:"ratingKey,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
GUID *string `json:"guid,omitempty"`
|
||||
Studio *string `json:"studio,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
TitleSort *string `json:"titleSort,omitempty"`
|
||||
LibrarySectionTitle *string `json:"librarySectionTitle,omitempty"`
|
||||
LibrarySectionID *int `json:"librarySectionID,omitempty"`
|
||||
LibrarySectionKey *string `json:"librarySectionKey,omitempty"`
|
||||
ContentRating *string `json:"contentRating,omitempty"`
|
||||
Summary *string `json:"summary,omitempty"`
|
||||
Rating *float64 `json:"rating,omitempty"`
|
||||
AudienceRating *float64 `json:"audienceRating,omitempty"`
|
||||
Year *int `json:"year,omitempty"`
|
||||
Tagline *string `json:"tagline,omitempty"`
|
||||
Thumb *string `json:"thumb,omitempty"`
|
||||
Art *string `json:"art,omitempty"`
|
||||
Duration *int `json:"duration,omitempty"`
|
||||
OriginallyAvailableAt *types.Date `json:"originallyAvailableAt,omitempty"`
|
||||
AddedAt *int `json:"addedAt,omitempty"`
|
||||
UpdatedAt *int `json:"updatedAt,omitempty"`
|
||||
AudienceRatingImage *string `json:"audienceRatingImage,omitempty"`
|
||||
HasPremiumExtras *string `json:"hasPremiumExtras,omitempty"`
|
||||
HasPremiumPrimaryExtra *string `json:"hasPremiumPrimaryExtra,omitempty"`
|
||||
RatingImage *string `json:"ratingImage,omitempty"`
|
||||
Media []GetPlaylistContentsMedia `json:"Media,omitempty"`
|
||||
Genre []GetPlaylistContentsGenre `json:"Genre,omitempty"`
|
||||
Country []GetPlaylistContentsCountry `json:"Country,omitempty"`
|
||||
Director []GetPlaylistContentsDirector `json:"Director,omitempty"`
|
||||
Writer []GetPlaylistContentsWriter `json:"Writer,omitempty"`
|
||||
Role []GetPlaylistContentsRole `json:"Role,omitempty"`
|
||||
}
|
||||
|
||||
func (g GetPlaylistContentsMetadata) MarshalJSON() ([]byte, error) {
|
||||
return utils.MarshalJSON(g, "", false)
|
||||
}
|
||||
|
||||
func (g *GetPlaylistContentsMetadata) UnmarshalJSON(data []byte) error {
|
||||
if err := utils.UnmarshalJSON(data, &g, "", false, false); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetRatingKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RatingKey
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetGUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GUID
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetStudio() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Studio
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetTitleSort() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TitleSort
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetLibrarySectionTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionTitle
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetLibrarySectionID() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionID
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetLibrarySectionKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionKey
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetContentRating() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ContentRating
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetSummary() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Summary
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetRating() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Rating
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetAudienceRating() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudienceRating
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetYear() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Year
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetTagline() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tagline
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Thumb
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetArt() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Art
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetDuration() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetOriginallyAvailableAt() *types.Date {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.OriginallyAvailableAt
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetAddedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AddedAt
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetUpdatedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.UpdatedAt
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetAudienceRatingImage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudienceRatingImage
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetHasPremiumExtras() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.HasPremiumExtras
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetHasPremiumPrimaryExtra() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.HasPremiumPrimaryExtra
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetRatingImage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RatingImage
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetMedia() []GetPlaylistContentsMedia {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Media
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetGenre() []GetPlaylistContentsGenre {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Genre
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetCountry() []GetPlaylistContentsCountry {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Country
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetDirector() []GetPlaylistContentsDirector {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Director
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetWriter() []GetPlaylistContentsWriter {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Writer
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMetadata) GetRole() []GetPlaylistContentsRole {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Role
|
||||
}
|
||||
|
||||
type GetPlaylistContentsMediaContainer struct {
|
||||
Size *int `json:"size,omitempty"`
|
||||
Composite *string `json:"composite,omitempty"`
|
||||
Duration *int `json:"duration,omitempty"`
|
||||
LeafCount *int `json:"leafCount,omitempty"`
|
||||
PlaylistType *string `json:"playlistType,omitempty"`
|
||||
RatingKey *string `json:"ratingKey,omitempty"`
|
||||
Smart *bool `json:"smart,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
Metadata []GetPlaylistContentsMetadata `json:"Metadata,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMediaContainer) GetSize() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMediaContainer) GetComposite() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Composite
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMediaContainer) GetDuration() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMediaContainer) GetLeafCount() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LeafCount
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMediaContainer) GetPlaylistType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.PlaylistType
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMediaContainer) GetRatingKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RatingKey
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMediaContainer) GetSmart() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Smart
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMediaContainer) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsMediaContainer) GetMetadata() []GetPlaylistContentsMetadata {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Metadata
|
||||
}
|
||||
|
||||
// GetPlaylistContentsResponseBody - The playlist contents
|
||||
type GetPlaylistContentsResponseBody struct {
|
||||
MediaContainer *GetPlaylistContentsMediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsResponseBody) GetMediaContainer() *GetPlaylistContentsMediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type GetPlaylistContentsResponse 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
|
||||
// The playlist contents
|
||||
TwoHundredApplicationJSONObject *GetPlaylistContentsResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *GetPlaylistContentsPlaylistsResponseBody
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsResponse) GetTwoHundredApplicationJSONObject() *GetPlaylistContentsResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *GetPlaylistContentsResponse) GetFourHundredAndOneApplicationJSONObject() *GetPlaylistContentsPlaylistsResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
338
internal/sdk/models/operations/getplaylists.go
Normal file
338
internal/sdk/models/operations/getplaylists.go
Normal file
@@ -0,0 +1,338 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// PlaylistType - limit to a type of playlist.
|
||||
type PlaylistType string
|
||||
|
||||
const (
|
||||
PlaylistTypeAudio PlaylistType = "audio"
|
||||
PlaylistTypeVideo PlaylistType = "video"
|
||||
PlaylistTypePhoto PlaylistType = "photo"
|
||||
)
|
||||
|
||||
func (e PlaylistType) ToPointer() *PlaylistType {
|
||||
return &e
|
||||
}
|
||||
|
||||
func (e *PlaylistType) UnmarshalJSON(data []byte) error {
|
||||
var v string
|
||||
if err := json.Unmarshal(data, &v); err != nil {
|
||||
return err
|
||||
}
|
||||
switch v {
|
||||
case "audio":
|
||||
fallthrough
|
||||
case "video":
|
||||
fallthrough
|
||||
case "photo":
|
||||
*e = PlaylistType(v)
|
||||
return nil
|
||||
default:
|
||||
return fmt.Errorf("invalid value for PlaylistType: %v", v)
|
||||
}
|
||||
}
|
||||
|
||||
// QueryParamSmart - type of playlists to return (default is all).
|
||||
type QueryParamSmart int64
|
||||
|
||||
const (
|
||||
QueryParamSmartZero QueryParamSmart = 0
|
||||
QueryParamSmartOne QueryParamSmart = 1
|
||||
)
|
||||
|
||||
func (e QueryParamSmart) ToPointer() *QueryParamSmart {
|
||||
return &e
|
||||
}
|
||||
|
||||
func (e *QueryParamSmart) UnmarshalJSON(data []byte) error {
|
||||
var v int64
|
||||
if err := json.Unmarshal(data, &v); err != nil {
|
||||
return err
|
||||
}
|
||||
switch v {
|
||||
case 0:
|
||||
fallthrough
|
||||
case 1:
|
||||
*e = QueryParamSmart(v)
|
||||
return nil
|
||||
default:
|
||||
return fmt.Errorf("invalid value for QueryParamSmart: %v", v)
|
||||
}
|
||||
}
|
||||
|
||||
type GetPlaylistsRequest struct {
|
||||
// limit to a type of playlist.
|
||||
PlaylistType *PlaylistType `queryParam:"style=form,explode=true,name=playlistType"`
|
||||
// type of playlists to return (default is all).
|
||||
Smart *QueryParamSmart `queryParam:"style=form,explode=true,name=smart"`
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsRequest) GetPlaylistType() *PlaylistType {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.PlaylistType
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsRequest) GetSmart() *QueryParamSmart {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Smart
|
||||
}
|
||||
|
||||
type GetPlaylistsErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetPlaylistsPlaylistsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetPlaylistsPlaylistsResponseBody struct {
|
||||
Errors []GetPlaylistsErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsPlaylistsResponseBody) GetErrors() []GetPlaylistsErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type GetPlaylistsMetadata struct {
|
||||
RatingKey *string `json:"ratingKey,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
GUID *string `json:"guid,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
Summary *string `json:"summary,omitempty"`
|
||||
Smart *bool `json:"smart,omitempty"`
|
||||
PlaylistType *string `json:"playlistType,omitempty"`
|
||||
Composite *string `json:"composite,omitempty"`
|
||||
Icon *string `json:"icon,omitempty"`
|
||||
ViewCount *int `json:"viewCount,omitempty"`
|
||||
LastViewedAt *int `json:"lastViewedAt,omitempty"`
|
||||
Duration *int `json:"duration,omitempty"`
|
||||
LeafCount *int `json:"leafCount,omitempty"`
|
||||
AddedAt *int `json:"addedAt,omitempty"`
|
||||
UpdatedAt *int `json:"updatedAt,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsMetadata) GetRatingKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RatingKey
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsMetadata) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsMetadata) GetGUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GUID
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsMetadata) GetType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsMetadata) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsMetadata) GetSummary() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Summary
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsMetadata) GetSmart() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Smart
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsMetadata) GetPlaylistType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.PlaylistType
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsMetadata) GetComposite() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Composite
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsMetadata) GetIcon() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Icon
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsMetadata) GetViewCount() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ViewCount
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsMetadata) GetLastViewedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LastViewedAt
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsMetadata) GetDuration() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsMetadata) GetLeafCount() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LeafCount
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsMetadata) GetAddedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AddedAt
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsMetadata) GetUpdatedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.UpdatedAt
|
||||
}
|
||||
|
||||
type GetPlaylistsMediaContainer struct {
|
||||
Size *int `json:"size,omitempty"`
|
||||
Metadata []GetPlaylistsMetadata `json:"Metadata,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsMediaContainer) GetSize() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsMediaContainer) GetMetadata() []GetPlaylistsMetadata {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Metadata
|
||||
}
|
||||
|
||||
// GetPlaylistsResponseBody - returns all playlists
|
||||
type GetPlaylistsResponseBody struct {
|
||||
MediaContainer *GetPlaylistsMediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsResponseBody) GetMediaContainer() *GetPlaylistsMediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type GetPlaylistsResponse 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
|
||||
// returns all playlists
|
||||
TwoHundredApplicationJSONObject *GetPlaylistsResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *GetPlaylistsPlaylistsResponseBody
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsResponse) GetTwoHundredApplicationJSONObject() *GetPlaylistsResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *GetPlaylistsResponse) GetFourHundredAndOneApplicationJSONObject() *GetPlaylistsPlaylistsResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
706
internal/sdk/models/operations/getrecentlyadded.go
Normal file
706
internal/sdk/models/operations/getrecentlyadded.go
Normal file
@@ -0,0 +1,706 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"github.com/LukeHagar/terraform-provider-PlexAPI/internal/sdk/internal/utils"
|
||||
"net/http"
|
||||
"time"
|
||||
)
|
||||
|
||||
type GetRecentlyAddedErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetRecentlyAddedErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetRecentlyAddedErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetRecentlyAddedErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetRecentlyAddedLibraryResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetRecentlyAddedLibraryResponseBody struct {
|
||||
Errors []GetRecentlyAddedErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetRecentlyAddedLibraryResponseBody) GetErrors() []GetRecentlyAddedErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type Part struct {
|
||||
ID *float64 `json:"id,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
Duration *float64 `json:"duration,omitempty"`
|
||||
File *string `json:"file,omitempty"`
|
||||
Size *float64 `json:"size,omitempty"`
|
||||
Container *string `json:"container,omitempty"`
|
||||
Has64bitOffsets *bool `json:"has64bitOffsets,omitempty"`
|
||||
HasThumbnail *float64 `json:"hasThumbnail,omitempty"`
|
||||
OptimizedForStreaming *bool `json:"optimizedForStreaming,omitempty"`
|
||||
VideoProfile *string `json:"videoProfile,omitempty"`
|
||||
}
|
||||
|
||||
func (o *Part) GetID() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ID
|
||||
}
|
||||
|
||||
func (o *Part) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *Part) GetDuration() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *Part) GetFile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.File
|
||||
}
|
||||
|
||||
func (o *Part) GetSize() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *Part) GetContainer() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Container
|
||||
}
|
||||
|
||||
func (o *Part) GetHas64bitOffsets() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Has64bitOffsets
|
||||
}
|
||||
|
||||
func (o *Part) GetHasThumbnail() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.HasThumbnail
|
||||
}
|
||||
|
||||
func (o *Part) GetOptimizedForStreaming() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.OptimizedForStreaming
|
||||
}
|
||||
|
||||
func (o *Part) GetVideoProfile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoProfile
|
||||
}
|
||||
|
||||
type Media struct {
|
||||
ID *float64 `json:"id,omitempty"`
|
||||
Duration *float64 `json:"duration,omitempty"`
|
||||
Bitrate *float64 `json:"bitrate,omitempty"`
|
||||
Width *float64 `json:"width,omitempty"`
|
||||
Height *float64 `json:"height,omitempty"`
|
||||
AspectRatio *float64 `json:"aspectRatio,omitempty"`
|
||||
AudioChannels *float64 `json:"audioChannels,omitempty"`
|
||||
AudioCodec *string `json:"audioCodec,omitempty"`
|
||||
VideoCodec *string `json:"videoCodec,omitempty"`
|
||||
VideoResolution *float64 `json:"videoResolution,omitempty"`
|
||||
Container *string `json:"container,omitempty"`
|
||||
VideoFrameRate *string `json:"videoFrameRate,omitempty"`
|
||||
OptimizedForStreaming *float64 `json:"optimizedForStreaming,omitempty"`
|
||||
Has64bitOffsets *bool `json:"has64bitOffsets,omitempty"`
|
||||
VideoProfile *string `json:"videoProfile,omitempty"`
|
||||
Part []Part `json:"Part,omitempty"`
|
||||
}
|
||||
|
||||
func (o *Media) GetID() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ID
|
||||
}
|
||||
|
||||
func (o *Media) GetDuration() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *Media) GetBitrate() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Bitrate
|
||||
}
|
||||
|
||||
func (o *Media) GetWidth() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Width
|
||||
}
|
||||
|
||||
func (o *Media) GetHeight() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Height
|
||||
}
|
||||
|
||||
func (o *Media) GetAspectRatio() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AspectRatio
|
||||
}
|
||||
|
||||
func (o *Media) GetAudioChannels() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioChannels
|
||||
}
|
||||
|
||||
func (o *Media) GetAudioCodec() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioCodec
|
||||
}
|
||||
|
||||
func (o *Media) GetVideoCodec() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoCodec
|
||||
}
|
||||
|
||||
func (o *Media) GetVideoResolution() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoResolution
|
||||
}
|
||||
|
||||
func (o *Media) GetContainer() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Container
|
||||
}
|
||||
|
||||
func (o *Media) GetVideoFrameRate() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoFrameRate
|
||||
}
|
||||
|
||||
func (o *Media) GetOptimizedForStreaming() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.OptimizedForStreaming
|
||||
}
|
||||
|
||||
func (o *Media) GetHas64bitOffsets() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Has64bitOffsets
|
||||
}
|
||||
|
||||
func (o *Media) GetVideoProfile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoProfile
|
||||
}
|
||||
|
||||
func (o *Media) GetPart() []Part {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Part
|
||||
}
|
||||
|
||||
type Genre struct {
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
}
|
||||
|
||||
func (o *Genre) GetTag() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tag
|
||||
}
|
||||
|
||||
type Director struct {
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
}
|
||||
|
||||
func (o *Director) GetTag() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tag
|
||||
}
|
||||
|
||||
type Writer struct {
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
}
|
||||
|
||||
func (o *Writer) GetTag() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tag
|
||||
}
|
||||
|
||||
type Country struct {
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
}
|
||||
|
||||
func (o *Country) GetTag() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tag
|
||||
}
|
||||
|
||||
type Role struct {
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
}
|
||||
|
||||
func (o *Role) GetTag() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tag
|
||||
}
|
||||
|
||||
type Metadata struct {
|
||||
AllowSync *bool `json:"allowSync,omitempty"`
|
||||
LibrarySectionID *float64 `json:"librarySectionID,omitempty"`
|
||||
LibrarySectionTitle *string `json:"librarySectionTitle,omitempty"`
|
||||
LibrarySectionUUID *string `json:"librarySectionUUID,omitempty"`
|
||||
RatingKey *float64 `json:"ratingKey,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
GUID *string `json:"guid,omitempty"`
|
||||
Studio *string `json:"studio,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
ContentRating *string `json:"contentRating,omitempty"`
|
||||
Summary *string `json:"summary,omitempty"`
|
||||
Rating *float64 `json:"rating,omitempty"`
|
||||
AudienceRating *float64 `json:"audienceRating,omitempty"`
|
||||
Year *float64 `json:"year,omitempty"`
|
||||
Tagline *string `json:"tagline,omitempty"`
|
||||
Thumb *string `json:"thumb,omitempty"`
|
||||
Art *string `json:"art,omitempty"`
|
||||
Duration *float64 `json:"duration,omitempty"`
|
||||
OriginallyAvailableAt *time.Time `json:"originallyAvailableAt,omitempty"`
|
||||
AddedAt *float64 `json:"addedAt,omitempty"`
|
||||
UpdatedAt *float64 `json:"updatedAt,omitempty"`
|
||||
AudienceRatingImage *string `json:"audienceRatingImage,omitempty"`
|
||||
ChapterSource *string `json:"chapterSource,omitempty"`
|
||||
PrimaryExtraKey *string `json:"primaryExtraKey,omitempty"`
|
||||
RatingImage *string `json:"ratingImage,omitempty"`
|
||||
Media []Media `json:"Media,omitempty"`
|
||||
Genre []Genre `json:"Genre,omitempty"`
|
||||
Director []Director `json:"Director,omitempty"`
|
||||
Writer []Writer `json:"Writer,omitempty"`
|
||||
Country []Country `json:"Country,omitempty"`
|
||||
Role []Role `json:"Role,omitempty"`
|
||||
}
|
||||
|
||||
func (m Metadata) MarshalJSON() ([]byte, error) {
|
||||
return utils.MarshalJSON(m, "", false)
|
||||
}
|
||||
|
||||
func (m *Metadata) UnmarshalJSON(data []byte) error {
|
||||
if err := utils.UnmarshalJSON(data, &m, "", false, false); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (o *Metadata) GetAllowSync() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AllowSync
|
||||
}
|
||||
|
||||
func (o *Metadata) GetLibrarySectionID() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionID
|
||||
}
|
||||
|
||||
func (o *Metadata) GetLibrarySectionTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionTitle
|
||||
}
|
||||
|
||||
func (o *Metadata) GetLibrarySectionUUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionUUID
|
||||
}
|
||||
|
||||
func (o *Metadata) GetRatingKey() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RatingKey
|
||||
}
|
||||
|
||||
func (o *Metadata) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *Metadata) GetGUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GUID
|
||||
}
|
||||
|
||||
func (o *Metadata) GetStudio() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Studio
|
||||
}
|
||||
|
||||
func (o *Metadata) GetType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
func (o *Metadata) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *Metadata) GetContentRating() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ContentRating
|
||||
}
|
||||
|
||||
func (o *Metadata) GetSummary() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Summary
|
||||
}
|
||||
|
||||
func (o *Metadata) GetRating() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Rating
|
||||
}
|
||||
|
||||
func (o *Metadata) GetAudienceRating() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudienceRating
|
||||
}
|
||||
|
||||
func (o *Metadata) GetYear() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Year
|
||||
}
|
||||
|
||||
func (o *Metadata) GetTagline() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tagline
|
||||
}
|
||||
|
||||
func (o *Metadata) GetThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Thumb
|
||||
}
|
||||
|
||||
func (o *Metadata) GetArt() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Art
|
||||
}
|
||||
|
||||
func (o *Metadata) GetDuration() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *Metadata) GetOriginallyAvailableAt() *time.Time {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.OriginallyAvailableAt
|
||||
}
|
||||
|
||||
func (o *Metadata) GetAddedAt() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AddedAt
|
||||
}
|
||||
|
||||
func (o *Metadata) GetUpdatedAt() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.UpdatedAt
|
||||
}
|
||||
|
||||
func (o *Metadata) GetAudienceRatingImage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudienceRatingImage
|
||||
}
|
||||
|
||||
func (o *Metadata) GetChapterSource() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ChapterSource
|
||||
}
|
||||
|
||||
func (o *Metadata) GetPrimaryExtraKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.PrimaryExtraKey
|
||||
}
|
||||
|
||||
func (o *Metadata) GetRatingImage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RatingImage
|
||||
}
|
||||
|
||||
func (o *Metadata) GetMedia() []Media {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Media
|
||||
}
|
||||
|
||||
func (o *Metadata) GetGenre() []Genre {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Genre
|
||||
}
|
||||
|
||||
func (o *Metadata) GetDirector() []Director {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Director
|
||||
}
|
||||
|
||||
func (o *Metadata) GetWriter() []Writer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Writer
|
||||
}
|
||||
|
||||
func (o *Metadata) GetCountry() []Country {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Country
|
||||
}
|
||||
|
||||
func (o *Metadata) GetRole() []Role {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Role
|
||||
}
|
||||
|
||||
type GetRecentlyAddedMediaContainer struct {
|
||||
Size *float64 `json:"size,omitempty"`
|
||||
AllowSync *bool `json:"allowSync,omitempty"`
|
||||
Identifier *string `json:"identifier,omitempty"`
|
||||
MediaTagPrefix *string `json:"mediaTagPrefix,omitempty"`
|
||||
MediaTagVersion *float64 `json:"mediaTagVersion,omitempty"`
|
||||
MixedParents *bool `json:"mixedParents,omitempty"`
|
||||
Metadata []Metadata `json:"Metadata,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetRecentlyAddedMediaContainer) GetSize() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetRecentlyAddedMediaContainer) GetAllowSync() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AllowSync
|
||||
}
|
||||
|
||||
func (o *GetRecentlyAddedMediaContainer) GetIdentifier() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Identifier
|
||||
}
|
||||
|
||||
func (o *GetRecentlyAddedMediaContainer) GetMediaTagPrefix() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaTagPrefix
|
||||
}
|
||||
|
||||
func (o *GetRecentlyAddedMediaContainer) GetMediaTagVersion() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaTagVersion
|
||||
}
|
||||
|
||||
func (o *GetRecentlyAddedMediaContainer) GetMixedParents() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MixedParents
|
||||
}
|
||||
|
||||
func (o *GetRecentlyAddedMediaContainer) GetMetadata() []Metadata {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Metadata
|
||||
}
|
||||
|
||||
// GetRecentlyAddedResponseBody - The recently added content
|
||||
type GetRecentlyAddedResponseBody struct {
|
||||
MediaContainer *GetRecentlyAddedMediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetRecentlyAddedResponseBody) GetMediaContainer() *GetRecentlyAddedMediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type GetRecentlyAddedResponse 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
|
||||
// The recently added content
|
||||
TwoHundredApplicationJSONObject *GetRecentlyAddedResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *GetRecentlyAddedLibraryResponseBody
|
||||
}
|
||||
|
||||
func (o *GetRecentlyAddedResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetRecentlyAddedResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetRecentlyAddedResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetRecentlyAddedResponse) GetTwoHundredApplicationJSONObject() *GetRecentlyAddedResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *GetRecentlyAddedResponse) GetFourHundredAndOneApplicationJSONObject() *GetRecentlyAddedLibraryResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
221
internal/sdk/models/operations/getresizedphoto.go
Normal file
221
internal/sdk/models/operations/getresizedphoto.go
Normal file
@@ -0,0 +1,221 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/LukeHagar/terraform-provider-PlexAPI/internal/sdk/internal/utils"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// MinSize - images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against.
|
||||
type MinSize int64
|
||||
|
||||
const (
|
||||
MinSizeZero MinSize = 0
|
||||
MinSizeOne MinSize = 1
|
||||
)
|
||||
|
||||
func (e MinSize) ToPointer() *MinSize {
|
||||
return &e
|
||||
}
|
||||
|
||||
func (e *MinSize) UnmarshalJSON(data []byte) error {
|
||||
var v int64
|
||||
if err := json.Unmarshal(data, &v); err != nil {
|
||||
return err
|
||||
}
|
||||
switch v {
|
||||
case 0:
|
||||
fallthrough
|
||||
case 1:
|
||||
*e = MinSize(v)
|
||||
return nil
|
||||
default:
|
||||
return fmt.Errorf("invalid value for MinSize: %v", v)
|
||||
}
|
||||
}
|
||||
|
||||
// Upscale - allow images to be resized beyond native dimensions.
|
||||
type Upscale int64
|
||||
|
||||
const (
|
||||
UpscaleZero Upscale = 0
|
||||
UpscaleOne Upscale = 1
|
||||
)
|
||||
|
||||
func (e Upscale) ToPointer() *Upscale {
|
||||
return &e
|
||||
}
|
||||
|
||||
func (e *Upscale) UnmarshalJSON(data []byte) error {
|
||||
var v int64
|
||||
if err := json.Unmarshal(data, &v); err != nil {
|
||||
return err
|
||||
}
|
||||
switch v {
|
||||
case 0:
|
||||
fallthrough
|
||||
case 1:
|
||||
*e = Upscale(v)
|
||||
return nil
|
||||
default:
|
||||
return fmt.Errorf("invalid value for Upscale: %v", v)
|
||||
}
|
||||
}
|
||||
|
||||
type GetResizedPhotoRequest struct {
|
||||
// The width for the resized photo
|
||||
Width float64 `queryParam:"style=form,explode=true,name=width"`
|
||||
// The height for the resized photo
|
||||
Height float64 `queryParam:"style=form,explode=true,name=height"`
|
||||
// The opacity for the resized photo
|
||||
Opacity int64 `default:"100" queryParam:"style=form,explode=true,name=opacity"`
|
||||
// The width for the resized photo
|
||||
Blur float64 `queryParam:"style=form,explode=true,name=blur"`
|
||||
// images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against.
|
||||
MinSize MinSize `queryParam:"style=form,explode=true,name=minSize"`
|
||||
// allow images to be resized beyond native dimensions.
|
||||
Upscale Upscale `queryParam:"style=form,explode=true,name=upscale"`
|
||||
// path to image within Plex
|
||||
URL string `queryParam:"style=form,explode=true,name=url"`
|
||||
}
|
||||
|
||||
func (g GetResizedPhotoRequest) MarshalJSON() ([]byte, error) {
|
||||
return utils.MarshalJSON(g, "", false)
|
||||
}
|
||||
|
||||
func (g *GetResizedPhotoRequest) UnmarshalJSON(data []byte) error {
|
||||
if err := utils.UnmarshalJSON(data, &g, "", false, false); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (o *GetResizedPhotoRequest) GetWidth() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.Width
|
||||
}
|
||||
|
||||
func (o *GetResizedPhotoRequest) GetHeight() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.Height
|
||||
}
|
||||
|
||||
func (o *GetResizedPhotoRequest) GetOpacity() int64 {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.Opacity
|
||||
}
|
||||
|
||||
func (o *GetResizedPhotoRequest) GetBlur() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.Blur
|
||||
}
|
||||
|
||||
func (o *GetResizedPhotoRequest) GetMinSize() MinSize {
|
||||
if o == nil {
|
||||
return MinSize(0)
|
||||
}
|
||||
return o.MinSize
|
||||
}
|
||||
|
||||
func (o *GetResizedPhotoRequest) GetUpscale() Upscale {
|
||||
if o == nil {
|
||||
return Upscale(0)
|
||||
}
|
||||
return o.Upscale
|
||||
}
|
||||
|
||||
func (o *GetResizedPhotoRequest) GetURL() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.URL
|
||||
}
|
||||
|
||||
type GetResizedPhotoErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetResizedPhotoErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetResizedPhotoErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetResizedPhotoErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetResizedPhotoResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetResizedPhotoResponseBody struct {
|
||||
Errors []GetResizedPhotoErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetResizedPhotoResponseBody) GetErrors() []GetResizedPhotoErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type GetResizedPhotoResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *GetResizedPhotoResponseBody
|
||||
}
|
||||
|
||||
func (o *GetResizedPhotoResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetResizedPhotoResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetResizedPhotoResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetResizedPhotoResponse) GetObject() *GetResizedPhotoResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
729
internal/sdk/models/operations/getsearchresults.go
Normal file
729
internal/sdk/models/operations/getsearchresults.go
Normal file
@@ -0,0 +1,729 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"github.com/LukeHagar/terraform-provider-PlexAPI/internal/sdk/internal/utils"
|
||||
"net/http"
|
||||
"time"
|
||||
)
|
||||
|
||||
type GetSearchResultsRequest struct {
|
||||
// The search query string to use
|
||||
Query string `queryParam:"style=form,explode=true,name=query"`
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsRequest) GetQuery() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.Query
|
||||
}
|
||||
|
||||
type GetSearchResultsErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetSearchResultsSearchResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetSearchResultsSearchResponseBody struct {
|
||||
Errors []GetSearchResultsErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsSearchResponseBody) GetErrors() []GetSearchResultsErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type GetSearchResultsPart struct {
|
||||
ID *float64 `json:"id,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
Duration *float64 `json:"duration,omitempty"`
|
||||
File *string `json:"file,omitempty"`
|
||||
Size *float64 `json:"size,omitempty"`
|
||||
AudioProfile *string `json:"audioProfile,omitempty"`
|
||||
Container *string `json:"container,omitempty"`
|
||||
VideoProfile *string `json:"videoProfile,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsPart) GetID() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ID
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsPart) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsPart) GetDuration() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsPart) GetFile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.File
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsPart) GetSize() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsPart) GetAudioProfile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioProfile
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsPart) GetContainer() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Container
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsPart) GetVideoProfile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoProfile
|
||||
}
|
||||
|
||||
type GetSearchResultsMedia struct {
|
||||
ID *float64 `json:"id,omitempty"`
|
||||
Duration *float64 `json:"duration,omitempty"`
|
||||
Bitrate *float64 `json:"bitrate,omitempty"`
|
||||
Width *float64 `json:"width,omitempty"`
|
||||
Height *float64 `json:"height,omitempty"`
|
||||
AspectRatio *float64 `json:"aspectRatio,omitempty"`
|
||||
AudioChannels *float64 `json:"audioChannels,omitempty"`
|
||||
AudioCodec *string `json:"audioCodec,omitempty"`
|
||||
VideoCodec *string `json:"videoCodec,omitempty"`
|
||||
VideoResolution *float64 `json:"videoResolution,omitempty"`
|
||||
Container *string `json:"container,omitempty"`
|
||||
VideoFrameRate *string `json:"videoFrameRate,omitempty"`
|
||||
AudioProfile *string `json:"audioProfile,omitempty"`
|
||||
VideoProfile *string `json:"videoProfile,omitempty"`
|
||||
Part []GetSearchResultsPart `json:"Part,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMedia) GetID() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ID
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMedia) GetDuration() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMedia) GetBitrate() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Bitrate
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMedia) GetWidth() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Width
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMedia) GetHeight() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Height
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMedia) GetAspectRatio() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AspectRatio
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMedia) GetAudioChannels() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioChannels
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMedia) GetAudioCodec() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioCodec
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMedia) GetVideoCodec() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoCodec
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMedia) GetVideoResolution() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoResolution
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMedia) GetContainer() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Container
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMedia) GetVideoFrameRate() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoFrameRate
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMedia) GetAudioProfile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioProfile
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMedia) GetVideoProfile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoProfile
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMedia) GetPart() []GetSearchResultsPart {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Part
|
||||
}
|
||||
|
||||
type GetSearchResultsGenre struct {
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsGenre) GetTag() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tag
|
||||
}
|
||||
|
||||
type GetSearchResultsDirector struct {
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsDirector) GetTag() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tag
|
||||
}
|
||||
|
||||
type GetSearchResultsWriter struct {
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsWriter) GetTag() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tag
|
||||
}
|
||||
|
||||
type GetSearchResultsCountry struct {
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsCountry) GetTag() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tag
|
||||
}
|
||||
|
||||
type GetSearchResultsRole struct {
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsRole) GetTag() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tag
|
||||
}
|
||||
|
||||
type GetSearchResultsMetadata struct {
|
||||
AllowSync *bool `json:"allowSync,omitempty"`
|
||||
LibrarySectionID *float64 `json:"librarySectionID,omitempty"`
|
||||
LibrarySectionTitle *string `json:"librarySectionTitle,omitempty"`
|
||||
LibrarySectionUUID *string `json:"librarySectionUUID,omitempty"`
|
||||
Personal *bool `json:"personal,omitempty"`
|
||||
SourceTitle *string `json:"sourceTitle,omitempty"`
|
||||
RatingKey *float64 `json:"ratingKey,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
GUID *string `json:"guid,omitempty"`
|
||||
Studio *string `json:"studio,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
ContentRating *string `json:"contentRating,omitempty"`
|
||||
Summary *string `json:"summary,omitempty"`
|
||||
Rating *float64 `json:"rating,omitempty"`
|
||||
AudienceRating *float64 `json:"audienceRating,omitempty"`
|
||||
Year *float64 `json:"year,omitempty"`
|
||||
Tagline *string `json:"tagline,omitempty"`
|
||||
Thumb *string `json:"thumb,omitempty"`
|
||||
Art *string `json:"art,omitempty"`
|
||||
Duration *float64 `json:"duration,omitempty"`
|
||||
OriginallyAvailableAt *time.Time `json:"originallyAvailableAt,omitempty"`
|
||||
AddedAt *float64 `json:"addedAt,omitempty"`
|
||||
UpdatedAt *float64 `json:"updatedAt,omitempty"`
|
||||
AudienceRatingImage *string `json:"audienceRatingImage,omitempty"`
|
||||
ChapterSource *string `json:"chapterSource,omitempty"`
|
||||
PrimaryExtraKey *string `json:"primaryExtraKey,omitempty"`
|
||||
RatingImage *string `json:"ratingImage,omitempty"`
|
||||
Media []GetSearchResultsMedia `json:"Media,omitempty"`
|
||||
Genre []GetSearchResultsGenre `json:"Genre,omitempty"`
|
||||
Director []GetSearchResultsDirector `json:"Director,omitempty"`
|
||||
Writer []GetSearchResultsWriter `json:"Writer,omitempty"`
|
||||
Country []GetSearchResultsCountry `json:"Country,omitempty"`
|
||||
Role []GetSearchResultsRole `json:"Role,omitempty"`
|
||||
}
|
||||
|
||||
func (g GetSearchResultsMetadata) MarshalJSON() ([]byte, error) {
|
||||
return utils.MarshalJSON(g, "", false)
|
||||
}
|
||||
|
||||
func (g *GetSearchResultsMetadata) UnmarshalJSON(data []byte) error {
|
||||
if err := utils.UnmarshalJSON(data, &g, "", false, false); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetAllowSync() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AllowSync
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetLibrarySectionID() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionID
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetLibrarySectionTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionTitle
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetLibrarySectionUUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionUUID
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetPersonal() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Personal
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetSourceTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.SourceTitle
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetRatingKey() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RatingKey
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetGUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GUID
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetStudio() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Studio
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetContentRating() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ContentRating
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetSummary() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Summary
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetRating() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Rating
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetAudienceRating() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudienceRating
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetYear() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Year
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetTagline() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Tagline
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Thumb
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetArt() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Art
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetDuration() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetOriginallyAvailableAt() *time.Time {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.OriginallyAvailableAt
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetAddedAt() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AddedAt
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetUpdatedAt() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.UpdatedAt
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetAudienceRatingImage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudienceRatingImage
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetChapterSource() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ChapterSource
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetPrimaryExtraKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.PrimaryExtraKey
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetRatingImage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RatingImage
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetMedia() []GetSearchResultsMedia {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Media
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetGenre() []GetSearchResultsGenre {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Genre
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetDirector() []GetSearchResultsDirector {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Director
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetWriter() []GetSearchResultsWriter {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Writer
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetCountry() []GetSearchResultsCountry {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Country
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMetadata) GetRole() []GetSearchResultsRole {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Role
|
||||
}
|
||||
|
||||
type Provider struct {
|
||||
Key *string `json:"key,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
}
|
||||
|
||||
func (o *Provider) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *Provider) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *Provider) GetType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
type GetSearchResultsMediaContainer struct {
|
||||
Size *float64 `json:"size,omitempty"`
|
||||
Identifier *string `json:"identifier,omitempty"`
|
||||
MediaTagPrefix *string `json:"mediaTagPrefix,omitempty"`
|
||||
MediaTagVersion *float64 `json:"mediaTagVersion,omitempty"`
|
||||
Metadata []GetSearchResultsMetadata `json:"Metadata,omitempty"`
|
||||
Provider []Provider `json:"Provider,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMediaContainer) GetSize() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMediaContainer) GetIdentifier() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Identifier
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMediaContainer) GetMediaTagPrefix() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaTagPrefix
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMediaContainer) GetMediaTagVersion() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaTagVersion
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMediaContainer) GetMetadata() []GetSearchResultsMetadata {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Metadata
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsMediaContainer) GetProvider() []Provider {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Provider
|
||||
}
|
||||
|
||||
// GetSearchResultsResponseBody - Search Results
|
||||
type GetSearchResultsResponseBody struct {
|
||||
MediaContainer *GetSearchResultsMediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsResponseBody) GetMediaContainer() *GetSearchResultsMediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type GetSearchResultsResponse 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
|
||||
// Search Results
|
||||
TwoHundredApplicationJSONObject *GetSearchResultsResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *GetSearchResultsSearchResponseBody
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsResponse) GetTwoHundredApplicationJSONObject() *GetSearchResultsResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *GetSearchResultsResponse) GetFourHundredAndOneApplicationJSONObject() *GetSearchResultsSearchResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
203
internal/sdk/models/operations/getserveractivities.go
Normal file
203
internal/sdk/models/operations/getserveractivities.go
Normal file
@@ -0,0 +1,203 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type GetServerActivitiesErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetServerActivitiesErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetServerActivitiesErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetServerActivitiesErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetServerActivitiesActivitiesResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetServerActivitiesActivitiesResponseBody struct {
|
||||
Errors []GetServerActivitiesErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetServerActivitiesActivitiesResponseBody) GetErrors() []GetServerActivitiesErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type Context struct {
|
||||
LibrarySectionID *string `json:"librarySectionID,omitempty"`
|
||||
}
|
||||
|
||||
func (o *Context) GetLibrarySectionID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionID
|
||||
}
|
||||
|
||||
type Activity struct {
|
||||
UUID *string `json:"uuid,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
Cancellable *bool `json:"cancellable,omitempty"`
|
||||
UserID *float64 `json:"userID,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
Subtitle *string `json:"subtitle,omitempty"`
|
||||
Progress *float64 `json:"progress,omitempty"`
|
||||
Context *Context `json:"Context,omitempty"`
|
||||
}
|
||||
|
||||
func (o *Activity) GetUUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.UUID
|
||||
}
|
||||
|
||||
func (o *Activity) GetType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
func (o *Activity) GetCancellable() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Cancellable
|
||||
}
|
||||
|
||||
func (o *Activity) GetUserID() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.UserID
|
||||
}
|
||||
|
||||
func (o *Activity) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *Activity) GetSubtitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Subtitle
|
||||
}
|
||||
|
||||
func (o *Activity) GetProgress() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Progress
|
||||
}
|
||||
|
||||
func (o *Activity) GetContext() *Context {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Context
|
||||
}
|
||||
|
||||
type GetServerActivitiesMediaContainer struct {
|
||||
Size *float64 `json:"size,omitempty"`
|
||||
Activity []Activity `json:"Activity,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetServerActivitiesMediaContainer) GetSize() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetServerActivitiesMediaContainer) GetActivity() []Activity {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Activity
|
||||
}
|
||||
|
||||
// GetServerActivitiesResponseBody - The Server Activities
|
||||
type GetServerActivitiesResponseBody struct {
|
||||
MediaContainer *GetServerActivitiesMediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetServerActivitiesResponseBody) GetMediaContainer() *GetServerActivitiesMediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type GetServerActivitiesResponse 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
|
||||
// The Server Activities
|
||||
TwoHundredApplicationJSONObject *GetServerActivitiesResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *GetServerActivitiesActivitiesResponseBody
|
||||
}
|
||||
|
||||
func (o *GetServerActivitiesResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetServerActivitiesResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetServerActivitiesResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetServerActivitiesResponse) GetTwoHundredApplicationJSONObject() *GetServerActivitiesResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *GetServerActivitiesResponse) GetFourHundredAndOneApplicationJSONObject() *GetServerActivitiesActivitiesResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
544
internal/sdk/models/operations/getservercapabilities.go
Normal file
544
internal/sdk/models/operations/getservercapabilities.go
Normal file
@@ -0,0 +1,544 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type Errors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *Errors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *Errors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *Errors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetServerCapabilitiesServerResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetServerCapabilitiesServerResponseBody struct {
|
||||
Errors []Errors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetServerCapabilitiesServerResponseBody) GetErrors() []Errors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type Directory struct {
|
||||
Count *float64 `json:"count,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
}
|
||||
|
||||
func (o *Directory) GetCount() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Count
|
||||
}
|
||||
|
||||
func (o *Directory) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *Directory) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
type MediaContainer struct {
|
||||
Size *float64 `json:"size,omitempty"`
|
||||
AllowCameraUpload *bool `json:"allowCameraUpload,omitempty"`
|
||||
AllowChannelAccess *bool `json:"allowChannelAccess,omitempty"`
|
||||
AllowMediaDeletion *bool `json:"allowMediaDeletion,omitempty"`
|
||||
AllowSharing *bool `json:"allowSharing,omitempty"`
|
||||
AllowSync *bool `json:"allowSync,omitempty"`
|
||||
AllowTuners *bool `json:"allowTuners,omitempty"`
|
||||
BackgroundProcessing *bool `json:"backgroundProcessing,omitempty"`
|
||||
Certificate *bool `json:"certificate,omitempty"`
|
||||
CompanionProxy *bool `json:"companionProxy,omitempty"`
|
||||
CountryCode *string `json:"countryCode,omitempty"`
|
||||
Diagnostics *string `json:"diagnostics,omitempty"`
|
||||
EventStream *bool `json:"eventStream,omitempty"`
|
||||
FriendlyName *string `json:"friendlyName,omitempty"`
|
||||
HubSearch *bool `json:"hubSearch,omitempty"`
|
||||
ItemClusters *bool `json:"itemClusters,omitempty"`
|
||||
Livetv *float64 `json:"livetv,omitempty"`
|
||||
MachineIdentifier *string `json:"machineIdentifier,omitempty"`
|
||||
MediaProviders *bool `json:"mediaProviders,omitempty"`
|
||||
Multiuser *bool `json:"multiuser,omitempty"`
|
||||
MusicAnalysis *float64 `json:"musicAnalysis,omitempty"`
|
||||
MyPlex *bool `json:"myPlex,omitempty"`
|
||||
MyPlexMappingState *string `json:"myPlexMappingState,omitempty"`
|
||||
MyPlexSigninState *string `json:"myPlexSigninState,omitempty"`
|
||||
MyPlexSubscription *bool `json:"myPlexSubscription,omitempty"`
|
||||
MyPlexUsername *string `json:"myPlexUsername,omitempty"`
|
||||
OfflineTranscode *float64 `json:"offlineTranscode,omitempty"`
|
||||
OwnerFeatures *string `json:"ownerFeatures,omitempty"`
|
||||
PhotoAutoTag *bool `json:"photoAutoTag,omitempty"`
|
||||
Platform *string `json:"platform,omitempty"`
|
||||
PlatformVersion *string `json:"platformVersion,omitempty"`
|
||||
PluginHost *bool `json:"pluginHost,omitempty"`
|
||||
PushNotifications *bool `json:"pushNotifications,omitempty"`
|
||||
ReadOnlyLibraries *bool `json:"readOnlyLibraries,omitempty"`
|
||||
StreamingBrainABRVersion *float64 `json:"streamingBrainABRVersion,omitempty"`
|
||||
StreamingBrainVersion *float64 `json:"streamingBrainVersion,omitempty"`
|
||||
Sync *bool `json:"sync,omitempty"`
|
||||
TranscoderActiveVideoSessions *float64 `json:"transcoderActiveVideoSessions,omitempty"`
|
||||
TranscoderAudio *bool `json:"transcoderAudio,omitempty"`
|
||||
TranscoderLyrics *bool `json:"transcoderLyrics,omitempty"`
|
||||
TranscoderPhoto *bool `json:"transcoderPhoto,omitempty"`
|
||||
TranscoderSubtitles *bool `json:"transcoderSubtitles,omitempty"`
|
||||
TranscoderVideo *bool `json:"transcoderVideo,omitempty"`
|
||||
TranscoderVideoBitrates *string `json:"transcoderVideoBitrates,omitempty"`
|
||||
TranscoderVideoQualities *string `json:"transcoderVideoQualities,omitempty"`
|
||||
TranscoderVideoResolutions *string `json:"transcoderVideoResolutions,omitempty"`
|
||||
UpdatedAt *float64 `json:"updatedAt,omitempty"`
|
||||
Updater *bool `json:"updater,omitempty"`
|
||||
Version *string `json:"version,omitempty"`
|
||||
VoiceSearch *bool `json:"voiceSearch,omitempty"`
|
||||
Directory []Directory `json:"Directory,omitempty"`
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetSize() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetAllowCameraUpload() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AllowCameraUpload
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetAllowChannelAccess() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AllowChannelAccess
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetAllowMediaDeletion() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AllowMediaDeletion
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetAllowSharing() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AllowSharing
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetAllowSync() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AllowSync
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetAllowTuners() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AllowTuners
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetBackgroundProcessing() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.BackgroundProcessing
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetCertificate() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Certificate
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetCompanionProxy() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.CompanionProxy
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetCountryCode() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.CountryCode
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetDiagnostics() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Diagnostics
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetEventStream() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.EventStream
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetFriendlyName() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FriendlyName
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetHubSearch() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.HubSearch
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetItemClusters() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ItemClusters
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetLivetv() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Livetv
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetMachineIdentifier() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MachineIdentifier
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetMediaProviders() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaProviders
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetMultiuser() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Multiuser
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetMusicAnalysis() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MusicAnalysis
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetMyPlex() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MyPlex
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetMyPlexMappingState() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MyPlexMappingState
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetMyPlexSigninState() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MyPlexSigninState
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetMyPlexSubscription() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MyPlexSubscription
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetMyPlexUsername() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MyPlexUsername
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetOfflineTranscode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.OfflineTranscode
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetOwnerFeatures() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.OwnerFeatures
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetPhotoAutoTag() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.PhotoAutoTag
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetPlatform() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Platform
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetPlatformVersion() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.PlatformVersion
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetPluginHost() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.PluginHost
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetPushNotifications() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.PushNotifications
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetReadOnlyLibraries() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ReadOnlyLibraries
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetStreamingBrainABRVersion() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.StreamingBrainABRVersion
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetStreamingBrainVersion() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.StreamingBrainVersion
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetSync() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Sync
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetTranscoderActiveVideoSessions() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TranscoderActiveVideoSessions
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetTranscoderAudio() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TranscoderAudio
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetTranscoderLyrics() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TranscoderLyrics
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetTranscoderPhoto() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TranscoderPhoto
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetTranscoderSubtitles() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TranscoderSubtitles
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetTranscoderVideo() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TranscoderVideo
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetTranscoderVideoBitrates() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TranscoderVideoBitrates
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetTranscoderVideoQualities() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TranscoderVideoQualities
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetTranscoderVideoResolutions() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TranscoderVideoResolutions
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetUpdatedAt() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.UpdatedAt
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetUpdater() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Updater
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetVersion() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Version
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetVoiceSearch() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VoiceSearch
|
||||
}
|
||||
|
||||
func (o *MediaContainer) GetDirectory() []Directory {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Directory
|
||||
}
|
||||
|
||||
// GetServerCapabilitiesResponseBody - The Server Capabilities
|
||||
type GetServerCapabilitiesResponseBody struct {
|
||||
MediaContainer *MediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetServerCapabilitiesResponseBody) GetMediaContainer() *MediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type GetServerCapabilitiesResponse 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
|
||||
// The Server Capabilities
|
||||
TwoHundredApplicationJSONObject *GetServerCapabilitiesResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *GetServerCapabilitiesServerResponseBody
|
||||
}
|
||||
|
||||
func (o *GetServerCapabilitiesResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetServerCapabilitiesResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetServerCapabilitiesResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetServerCapabilitiesResponse) GetTwoHundredApplicationJSONObject() *GetServerCapabilitiesResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *GetServerCapabilitiesResponse) GetFourHundredAndOneApplicationJSONObject() *GetServerCapabilitiesServerResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
141
internal/sdk/models/operations/getserveridentity.go
Normal file
141
internal/sdk/models/operations/getserveridentity.go
Normal file
@@ -0,0 +1,141 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type GetServerIdentityErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetServerIdentityErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetServerIdentityErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetServerIdentityErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetServerIdentityServerResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetServerIdentityServerResponseBody struct {
|
||||
Errors []GetServerIdentityErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetServerIdentityServerResponseBody) GetErrors() []GetServerIdentityErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type GetServerIdentityMediaContainer struct {
|
||||
Size *float64 `json:"size,omitempty"`
|
||||
Claimed *bool `json:"claimed,omitempty"`
|
||||
MachineIdentifier *string `json:"machineIdentifier,omitempty"`
|
||||
Version *string `json:"version,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetServerIdentityMediaContainer) GetSize() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetServerIdentityMediaContainer) GetClaimed() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Claimed
|
||||
}
|
||||
|
||||
func (o *GetServerIdentityMediaContainer) GetMachineIdentifier() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MachineIdentifier
|
||||
}
|
||||
|
||||
func (o *GetServerIdentityMediaContainer) GetVersion() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Version
|
||||
}
|
||||
|
||||
// GetServerIdentityResponseBody - The Server Identity information
|
||||
type GetServerIdentityResponseBody struct {
|
||||
MediaContainer *GetServerIdentityMediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetServerIdentityResponseBody) GetMediaContainer() *GetServerIdentityMediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type GetServerIdentityResponse 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
|
||||
// The Server Identity information
|
||||
TwoHundredApplicationJSONObject *GetServerIdentityResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *GetServerIdentityServerResponseBody
|
||||
}
|
||||
|
||||
func (o *GetServerIdentityResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetServerIdentityResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetServerIdentityResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetServerIdentityResponse) GetTwoHundredApplicationJSONObject() *GetServerIdentityResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *GetServerIdentityResponse) GetFourHundredAndOneApplicationJSONObject() *GetServerIdentityServerResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
176
internal/sdk/models/operations/getserverlist.go
Normal file
176
internal/sdk/models/operations/getserverlist.go
Normal file
@@ -0,0 +1,176 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type GetServerListErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetServerListErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetServerListErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetServerListErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetServerListServerResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetServerListServerResponseBody struct {
|
||||
Errors []GetServerListErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetServerListServerResponseBody) GetErrors() []GetServerListErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type GetServerListServer struct {
|
||||
Name *string `json:"name,omitempty"`
|
||||
Host *string `json:"host,omitempty"`
|
||||
Address *string `json:"address,omitempty"`
|
||||
Port *float64 `json:"port,omitempty"`
|
||||
MachineIdentifier *string `json:"machineIdentifier,omitempty"`
|
||||
Version *string `json:"version,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetServerListServer) GetName() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Name
|
||||
}
|
||||
|
||||
func (o *GetServerListServer) GetHost() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Host
|
||||
}
|
||||
|
||||
func (o *GetServerListServer) GetAddress() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Address
|
||||
}
|
||||
|
||||
func (o *GetServerListServer) GetPort() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Port
|
||||
}
|
||||
|
||||
func (o *GetServerListServer) GetMachineIdentifier() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MachineIdentifier
|
||||
}
|
||||
|
||||
func (o *GetServerListServer) GetVersion() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Version
|
||||
}
|
||||
|
||||
type GetServerListMediaContainer struct {
|
||||
Size *float64 `json:"size,omitempty"`
|
||||
Server []GetServerListServer `json:"Server,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetServerListMediaContainer) GetSize() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetServerListMediaContainer) GetServer() []GetServerListServer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Server
|
||||
}
|
||||
|
||||
// GetServerListResponseBody - List of Servers
|
||||
type GetServerListResponseBody struct {
|
||||
MediaContainer *GetServerListMediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetServerListResponseBody) GetMediaContainer() *GetServerListMediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type GetServerListResponse 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
|
||||
// List of Servers
|
||||
TwoHundredApplicationJSONObject *GetServerListResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *GetServerListServerResponseBody
|
||||
}
|
||||
|
||||
func (o *GetServerListResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetServerListResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetServerListResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetServerListResponse) GetTwoHundredApplicationJSONObject() *GetServerListResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *GetServerListResponse) GetFourHundredAndOneApplicationJSONObject() *GetServerListServerResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
208
internal/sdk/models/operations/getserverpreferences.go
Normal file
208
internal/sdk/models/operations/getserverpreferences.go
Normal file
@@ -0,0 +1,208 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type GetServerPreferencesErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetServerPreferencesErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetServerPreferencesErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetServerPreferencesErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetServerPreferencesServerResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetServerPreferencesServerResponseBody struct {
|
||||
Errors []GetServerPreferencesErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetServerPreferencesServerResponseBody) GetErrors() []GetServerPreferencesErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type Setting struct {
|
||||
ID *string `json:"id,omitempty"`
|
||||
Label *string `json:"label,omitempty"`
|
||||
Summary *string `json:"summary,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
Default *bool `json:"default,omitempty"`
|
||||
Value *bool `json:"value,omitempty"`
|
||||
Hidden *bool `json:"hidden,omitempty"`
|
||||
Advanced *bool `json:"advanced,omitempty"`
|
||||
Group *string `json:"group,omitempty"`
|
||||
EnumValues *string `json:"enumValues,omitempty"`
|
||||
}
|
||||
|
||||
func (o *Setting) GetID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ID
|
||||
}
|
||||
|
||||
func (o *Setting) GetLabel() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Label
|
||||
}
|
||||
|
||||
func (o *Setting) GetSummary() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Summary
|
||||
}
|
||||
|
||||
func (o *Setting) GetType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
func (o *Setting) GetDefault() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Default
|
||||
}
|
||||
|
||||
func (o *Setting) GetValue() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Value
|
||||
}
|
||||
|
||||
func (o *Setting) GetHidden() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Hidden
|
||||
}
|
||||
|
||||
func (o *Setting) GetAdvanced() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Advanced
|
||||
}
|
||||
|
||||
func (o *Setting) GetGroup() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Group
|
||||
}
|
||||
|
||||
func (o *Setting) GetEnumValues() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.EnumValues
|
||||
}
|
||||
|
||||
type GetServerPreferencesMediaContainer struct {
|
||||
Size *int `json:"size,omitempty"`
|
||||
Setting []Setting `json:"Setting,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetServerPreferencesMediaContainer) GetSize() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetServerPreferencesMediaContainer) GetSetting() []Setting {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Setting
|
||||
}
|
||||
|
||||
// GetServerPreferencesResponseBody - Server Preferences
|
||||
type GetServerPreferencesResponseBody struct {
|
||||
MediaContainer *GetServerPreferencesMediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetServerPreferencesResponseBody) GetMediaContainer() *GetServerPreferencesMediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type GetServerPreferencesResponse 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
|
||||
// Server Preferences
|
||||
TwoHundredApplicationJSONObject *GetServerPreferencesResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *GetServerPreferencesServerResponseBody
|
||||
}
|
||||
|
||||
func (o *GetServerPreferencesResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetServerPreferencesResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetServerPreferencesResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetServerPreferencesResponse) GetTwoHundredApplicationJSONObject() *GetServerPreferencesResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *GetServerPreferencesResponse) GetFourHundredAndOneApplicationJSONObject() *GetServerPreferencesServerResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
293
internal/sdk/models/operations/getsessionhistory.go
Normal file
293
internal/sdk/models/operations/getsessionhistory.go
Normal file
@@ -0,0 +1,293 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"github.com/LukeHagar/terraform-provider-PlexAPI/internal/sdk/internal/utils"
|
||||
"github.com/LukeHagar/terraform-provider-PlexAPI/internal/sdk/types"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type GetSessionHistoryErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetSessionHistorySessionsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetSessionHistorySessionsResponseBody struct {
|
||||
Errors []GetSessionHistoryErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetSessionHistorySessionsResponseBody) GetErrors() []GetSessionHistoryErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type GetSessionHistoryMetadata struct {
|
||||
HistoryKey *string `json:"historyKey,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
RatingKey *string `json:"ratingKey,omitempty"`
|
||||
LibrarySectionID *string `json:"librarySectionID,omitempty"`
|
||||
ParentKey *string `json:"parentKey,omitempty"`
|
||||
GrandparentKey *string `json:"grandparentKey,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
GrandparentTitle *string `json:"grandparentTitle,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
Thumb *string `json:"thumb,omitempty"`
|
||||
ParentThumb *string `json:"parentThumb,omitempty"`
|
||||
GrandparentThumb *string `json:"grandparentThumb,omitempty"`
|
||||
GrandparentArt *string `json:"grandparentArt,omitempty"`
|
||||
Index *int `json:"index,omitempty"`
|
||||
ParentIndex *int `json:"parentIndex,omitempty"`
|
||||
OriginallyAvailableAt *types.Date `json:"originallyAvailableAt,omitempty"`
|
||||
ViewedAt *int `json:"viewedAt,omitempty"`
|
||||
AccountID *int `json:"accountID,omitempty"`
|
||||
DeviceID *int `json:"deviceID,omitempty"`
|
||||
}
|
||||
|
||||
func (g GetSessionHistoryMetadata) MarshalJSON() ([]byte, error) {
|
||||
return utils.MarshalJSON(g, "", false)
|
||||
}
|
||||
|
||||
func (g *GetSessionHistoryMetadata) UnmarshalJSON(data []byte) error {
|
||||
if err := utils.UnmarshalJSON(data, &g, "", false, false); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryMetadata) GetHistoryKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.HistoryKey
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryMetadata) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryMetadata) GetRatingKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RatingKey
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryMetadata) GetLibrarySectionID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionID
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryMetadata) GetParentKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentKey
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryMetadata) GetGrandparentKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GrandparentKey
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryMetadata) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryMetadata) GetGrandparentTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GrandparentTitle
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryMetadata) GetType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryMetadata) GetThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Thumb
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryMetadata) GetParentThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentThumb
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryMetadata) GetGrandparentThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GrandparentThumb
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryMetadata) GetGrandparentArt() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GrandparentArt
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryMetadata) GetIndex() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Index
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryMetadata) GetParentIndex() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentIndex
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryMetadata) GetOriginallyAvailableAt() *types.Date {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.OriginallyAvailableAt
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryMetadata) GetViewedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ViewedAt
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryMetadata) GetAccountID() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AccountID
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryMetadata) GetDeviceID() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.DeviceID
|
||||
}
|
||||
|
||||
type GetSessionHistoryMediaContainer struct {
|
||||
Size *int `json:"size,omitempty"`
|
||||
Metadata []GetSessionHistoryMetadata `json:"Metadata,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryMediaContainer) GetSize() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryMediaContainer) GetMetadata() []GetSessionHistoryMetadata {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Metadata
|
||||
}
|
||||
|
||||
// GetSessionHistoryResponseBody - List of Plex Sessions
|
||||
type GetSessionHistoryResponseBody struct {
|
||||
MediaContainer *GetSessionHistoryMediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryResponseBody) GetMediaContainer() *GetSessionHistoryMediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type GetSessionHistoryResponse 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
|
||||
// List of Plex Sessions
|
||||
TwoHundredApplicationJSONObject *GetSessionHistoryResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *GetSessionHistorySessionsResponseBody
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryResponse) GetTwoHundredApplicationJSONObject() *GetSessionHistoryResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *GetSessionHistoryResponse) GetFourHundredAndOneApplicationJSONObject() *GetSessionHistorySessionsResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
914
internal/sdk/models/operations/getsessions.go
Normal file
914
internal/sdk/models/operations/getsessions.go
Normal file
@@ -0,0 +1,914 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type GetSessionsErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetSessionsErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetSessionsErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetSessionsErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetSessionsSessionsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetSessionsSessionsResponseBody struct {
|
||||
Errors []GetSessionsErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetSessionsSessionsResponseBody) GetErrors() []GetSessionsErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type GetSessionsStream struct {
|
||||
AlbumGain *string `json:"albumGain,omitempty"`
|
||||
AlbumPeak *string `json:"albumPeak,omitempty"`
|
||||
AlbumRange *string `json:"albumRange,omitempty"`
|
||||
AudioChannelLayout *string `json:"audioChannelLayout,omitempty"`
|
||||
BitDepth *int `json:"bitDepth,omitempty"`
|
||||
Bitrate *int `json:"bitrate,omitempty"`
|
||||
Channels *int `json:"channels,omitempty"`
|
||||
Codec *string `json:"codec,omitempty"`
|
||||
DisplayTitle *string `json:"displayTitle,omitempty"`
|
||||
ExtendedDisplayTitle *string `json:"extendedDisplayTitle,omitempty"`
|
||||
Gain *string `json:"gain,omitempty"`
|
||||
ID *string `json:"id,omitempty"`
|
||||
Index *int `json:"index,omitempty"`
|
||||
Loudness *string `json:"loudness,omitempty"`
|
||||
Lra *string `json:"lra,omitempty"`
|
||||
Peak *string `json:"peak,omitempty"`
|
||||
SamplingRate *int `json:"samplingRate,omitempty"`
|
||||
Selected *bool `json:"selected,omitempty"`
|
||||
StreamType *int `json:"streamType,omitempty"`
|
||||
Location *string `json:"location,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetSessionsStream) GetAlbumGain() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AlbumGain
|
||||
}
|
||||
|
||||
func (o *GetSessionsStream) GetAlbumPeak() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AlbumPeak
|
||||
}
|
||||
|
||||
func (o *GetSessionsStream) GetAlbumRange() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AlbumRange
|
||||
}
|
||||
|
||||
func (o *GetSessionsStream) GetAudioChannelLayout() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioChannelLayout
|
||||
}
|
||||
|
||||
func (o *GetSessionsStream) GetBitDepth() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.BitDepth
|
||||
}
|
||||
|
||||
func (o *GetSessionsStream) GetBitrate() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Bitrate
|
||||
}
|
||||
|
||||
func (o *GetSessionsStream) GetChannels() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Channels
|
||||
}
|
||||
|
||||
func (o *GetSessionsStream) GetCodec() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Codec
|
||||
}
|
||||
|
||||
func (o *GetSessionsStream) GetDisplayTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.DisplayTitle
|
||||
}
|
||||
|
||||
func (o *GetSessionsStream) GetExtendedDisplayTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ExtendedDisplayTitle
|
||||
}
|
||||
|
||||
func (o *GetSessionsStream) GetGain() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Gain
|
||||
}
|
||||
|
||||
func (o *GetSessionsStream) GetID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ID
|
||||
}
|
||||
|
||||
func (o *GetSessionsStream) GetIndex() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Index
|
||||
}
|
||||
|
||||
func (o *GetSessionsStream) GetLoudness() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Loudness
|
||||
}
|
||||
|
||||
func (o *GetSessionsStream) GetLra() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Lra
|
||||
}
|
||||
|
||||
func (o *GetSessionsStream) GetPeak() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Peak
|
||||
}
|
||||
|
||||
func (o *GetSessionsStream) GetSamplingRate() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.SamplingRate
|
||||
}
|
||||
|
||||
func (o *GetSessionsStream) GetSelected() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Selected
|
||||
}
|
||||
|
||||
func (o *GetSessionsStream) GetStreamType() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.StreamType
|
||||
}
|
||||
|
||||
func (o *GetSessionsStream) GetLocation() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Location
|
||||
}
|
||||
|
||||
type GetSessionsPart struct {
|
||||
Container *string `json:"container,omitempty"`
|
||||
Duration *int `json:"duration,omitempty"`
|
||||
File *string `json:"file,omitempty"`
|
||||
HasThumbnail *string `json:"hasThumbnail,omitempty"`
|
||||
ID *string `json:"id,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
Size *int `json:"size,omitempty"`
|
||||
Decision *string `json:"decision,omitempty"`
|
||||
Selected *bool `json:"selected,omitempty"`
|
||||
Stream []GetSessionsStream `json:"Stream,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetSessionsPart) GetContainer() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Container
|
||||
}
|
||||
|
||||
func (o *GetSessionsPart) GetDuration() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *GetSessionsPart) GetFile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.File
|
||||
}
|
||||
|
||||
func (o *GetSessionsPart) GetHasThumbnail() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.HasThumbnail
|
||||
}
|
||||
|
||||
func (o *GetSessionsPart) GetID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ID
|
||||
}
|
||||
|
||||
func (o *GetSessionsPart) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *GetSessionsPart) GetSize() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetSessionsPart) GetDecision() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Decision
|
||||
}
|
||||
|
||||
func (o *GetSessionsPart) GetSelected() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Selected
|
||||
}
|
||||
|
||||
func (o *GetSessionsPart) GetStream() []GetSessionsStream {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Stream
|
||||
}
|
||||
|
||||
type GetSessionsMedia struct {
|
||||
AudioChannels *int `json:"audioChannels,omitempty"`
|
||||
AudioCodec *string `json:"audioCodec,omitempty"`
|
||||
Bitrate *int `json:"bitrate,omitempty"`
|
||||
Container *string `json:"container,omitempty"`
|
||||
Duration *int `json:"duration,omitempty"`
|
||||
ID *string `json:"id,omitempty"`
|
||||
Selected *bool `json:"selected,omitempty"`
|
||||
Part []GetSessionsPart `json:"Part,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetSessionsMedia) GetAudioChannels() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioChannels
|
||||
}
|
||||
|
||||
func (o *GetSessionsMedia) GetAudioCodec() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioCodec
|
||||
}
|
||||
|
||||
func (o *GetSessionsMedia) GetBitrate() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Bitrate
|
||||
}
|
||||
|
||||
func (o *GetSessionsMedia) GetContainer() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Container
|
||||
}
|
||||
|
||||
func (o *GetSessionsMedia) GetDuration() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *GetSessionsMedia) GetID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ID
|
||||
}
|
||||
|
||||
func (o *GetSessionsMedia) GetSelected() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Selected
|
||||
}
|
||||
|
||||
func (o *GetSessionsMedia) GetPart() []GetSessionsPart {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Part
|
||||
}
|
||||
|
||||
type User struct {
|
||||
ID *string `json:"id,omitempty"`
|
||||
Thumb *string `json:"thumb,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
}
|
||||
|
||||
func (o *User) GetID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ID
|
||||
}
|
||||
|
||||
func (o *User) GetThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Thumb
|
||||
}
|
||||
|
||||
func (o *User) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
type Player struct {
|
||||
Address *string `json:"address,omitempty"`
|
||||
MachineIdentifier *string `json:"machineIdentifier,omitempty"`
|
||||
Model *string `json:"model,omitempty"`
|
||||
Platform *string `json:"platform,omitempty"`
|
||||
PlatformVersion *string `json:"platformVersion,omitempty"`
|
||||
Product *string `json:"product,omitempty"`
|
||||
Profile *string `json:"profile,omitempty"`
|
||||
RemotePublicAddress *string `json:"remotePublicAddress,omitempty"`
|
||||
State *string `json:"state,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
Version *string `json:"version,omitempty"`
|
||||
Local *bool `json:"local,omitempty"`
|
||||
Relayed *bool `json:"relayed,omitempty"`
|
||||
Secure *bool `json:"secure,omitempty"`
|
||||
UserID *int `json:"userID,omitempty"`
|
||||
}
|
||||
|
||||
func (o *Player) GetAddress() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Address
|
||||
}
|
||||
|
||||
func (o *Player) GetMachineIdentifier() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MachineIdentifier
|
||||
}
|
||||
|
||||
func (o *Player) GetModel() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Model
|
||||
}
|
||||
|
||||
func (o *Player) GetPlatform() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Platform
|
||||
}
|
||||
|
||||
func (o *Player) GetPlatformVersion() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.PlatformVersion
|
||||
}
|
||||
|
||||
func (o *Player) GetProduct() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Product
|
||||
}
|
||||
|
||||
func (o *Player) GetProfile() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Profile
|
||||
}
|
||||
|
||||
func (o *Player) GetRemotePublicAddress() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RemotePublicAddress
|
||||
}
|
||||
|
||||
func (o *Player) GetState() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.State
|
||||
}
|
||||
|
||||
func (o *Player) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *Player) GetVersion() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Version
|
||||
}
|
||||
|
||||
func (o *Player) GetLocal() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Local
|
||||
}
|
||||
|
||||
func (o *Player) GetRelayed() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Relayed
|
||||
}
|
||||
|
||||
func (o *Player) GetSecure() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Secure
|
||||
}
|
||||
|
||||
func (o *Player) GetUserID() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.UserID
|
||||
}
|
||||
|
||||
type Session struct {
|
||||
ID *string `json:"id,omitempty"`
|
||||
Bandwidth *int `json:"bandwidth,omitempty"`
|
||||
Location *string `json:"location,omitempty"`
|
||||
}
|
||||
|
||||
func (o *Session) GetID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ID
|
||||
}
|
||||
|
||||
func (o *Session) GetBandwidth() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Bandwidth
|
||||
}
|
||||
|
||||
func (o *Session) GetLocation() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Location
|
||||
}
|
||||
|
||||
type GetSessionsMetadata struct {
|
||||
AddedAt *int `json:"addedAt,omitempty"`
|
||||
Art *string `json:"art,omitempty"`
|
||||
Duration *int `json:"duration,omitempty"`
|
||||
GrandparentArt *string `json:"grandparentArt,omitempty"`
|
||||
GrandparentGUID *string `json:"grandparentGuid,omitempty"`
|
||||
GrandparentKey *string `json:"grandparentKey,omitempty"`
|
||||
GrandparentRatingKey *string `json:"grandparentRatingKey,omitempty"`
|
||||
GrandparentThumb *string `json:"grandparentThumb,omitempty"`
|
||||
GrandparentTitle *string `json:"grandparentTitle,omitempty"`
|
||||
GUID *string `json:"guid,omitempty"`
|
||||
Index *int `json:"index,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
LibrarySectionID *string `json:"librarySectionID,omitempty"`
|
||||
LibrarySectionKey *string `json:"librarySectionKey,omitempty"`
|
||||
LibrarySectionTitle *string `json:"librarySectionTitle,omitempty"`
|
||||
MusicAnalysisVersion *string `json:"musicAnalysisVersion,omitempty"`
|
||||
ParentGUID *string `json:"parentGuid,omitempty"`
|
||||
ParentIndex *int `json:"parentIndex,omitempty"`
|
||||
ParentKey *string `json:"parentKey,omitempty"`
|
||||
ParentRatingKey *string `json:"parentRatingKey,omitempty"`
|
||||
ParentStudio *string `json:"parentStudio,omitempty"`
|
||||
ParentThumb *string `json:"parentThumb,omitempty"`
|
||||
ParentTitle *string `json:"parentTitle,omitempty"`
|
||||
ParentYear *int `json:"parentYear,omitempty"`
|
||||
RatingCount *int `json:"ratingCount,omitempty"`
|
||||
RatingKey *string `json:"ratingKey,omitempty"`
|
||||
SessionKey *string `json:"sessionKey,omitempty"`
|
||||
Thumb *string `json:"thumb,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
TitleSort *string `json:"titleSort,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
UpdatedAt *int `json:"updatedAt,omitempty"`
|
||||
ViewOffset *int `json:"viewOffset,omitempty"`
|
||||
Media []GetSessionsMedia `json:"Media,omitempty"`
|
||||
User *User `json:"User,omitempty"`
|
||||
Player *Player `json:"Player,omitempty"`
|
||||
Session *Session `json:"Session,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetAddedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AddedAt
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetArt() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Art
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetDuration() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetGrandparentArt() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GrandparentArt
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetGrandparentGUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GrandparentGUID
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetGrandparentKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GrandparentKey
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetGrandparentRatingKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GrandparentRatingKey
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetGrandparentThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GrandparentThumb
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetGrandparentTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GrandparentTitle
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetGUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GUID
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetIndex() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Index
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetLibrarySectionID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionID
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetLibrarySectionKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionKey
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetLibrarySectionTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.LibrarySectionTitle
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetMusicAnalysisVersion() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MusicAnalysisVersion
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetParentGUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentGUID
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetParentIndex() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentIndex
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetParentKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentKey
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetParentRatingKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentRatingKey
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetParentStudio() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentStudio
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetParentThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentThumb
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetParentTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentTitle
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetParentYear() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentYear
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetRatingCount() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RatingCount
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetRatingKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RatingKey
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetSessionKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.SessionKey
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Thumb
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetTitleSort() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TitleSort
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetUpdatedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.UpdatedAt
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetViewOffset() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ViewOffset
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetMedia() []GetSessionsMedia {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Media
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetUser() *User {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.User
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetPlayer() *Player {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Player
|
||||
}
|
||||
|
||||
func (o *GetSessionsMetadata) GetSession() *Session {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Session
|
||||
}
|
||||
|
||||
type GetSessionsMediaContainer struct {
|
||||
Size *int `json:"size,omitempty"`
|
||||
Metadata []GetSessionsMetadata `json:"Metadata,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetSessionsMediaContainer) GetSize() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetSessionsMediaContainer) GetMetadata() []GetSessionsMetadata {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Metadata
|
||||
}
|
||||
|
||||
// GetSessionsResponseBody - List of Active Plex Sessions
|
||||
type GetSessionsResponseBody struct {
|
||||
MediaContainer *GetSessionsMediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetSessionsResponseBody) GetMediaContainer() *GetSessionsMediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type GetSessionsResponse 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
|
||||
// List of Active Plex Sessions
|
||||
TwoHundredApplicationJSONObject *GetSessionsResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *GetSessionsSessionsResponseBody
|
||||
}
|
||||
|
||||
func (o *GetSessionsResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetSessionsResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetSessionsResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetSessionsResponse) GetTwoHundredApplicationJSONObject() *GetSessionsResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *GetSessionsResponse) GetFourHundredAndOneApplicationJSONObject() *GetSessionsSessionsResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type GetSourceConnectionInformationRequest struct {
|
||||
// The source identifier with an included prefix.
|
||||
Source string `queryParam:"style=form,explode=true,name=source"`
|
||||
}
|
||||
|
||||
func (o *GetSourceConnectionInformationRequest) GetSource() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.Source
|
||||
}
|
||||
|
||||
type GetSourceConnectionInformationErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetSourceConnectionInformationErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetSourceConnectionInformationErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetSourceConnectionInformationErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetSourceConnectionInformationResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetSourceConnectionInformationResponseBody struct {
|
||||
Errors []GetSourceConnectionInformationErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetSourceConnectionInformationResponseBody) GetErrors() []GetSourceConnectionInformationErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type GetSourceConnectionInformationResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *GetSourceConnectionInformationResponseBody
|
||||
}
|
||||
|
||||
func (o *GetSourceConnectionInformationResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetSourceConnectionInformationResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetSourceConnectionInformationResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetSourceConnectionInformationResponse) GetObject() *GetSourceConnectionInformationResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
324
internal/sdk/models/operations/getstatistics.go
Normal file
324
internal/sdk/models/operations/getstatistics.go
Normal file
@@ -0,0 +1,324 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type GetStatisticsRequest struct {
|
||||
// The timespan to retrieve statistics for
|
||||
// the exact meaning of this parameter is not known
|
||||
//
|
||||
Timespan *int64 `queryParam:"style=form,explode=true,name=Timespan"`
|
||||
}
|
||||
|
||||
func (o *GetStatisticsRequest) GetTimespan() *int64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Timespan
|
||||
}
|
||||
|
||||
type GetStatisticsErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetStatisticsErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetStatisticsErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetStatisticsErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetStatisticsStatisticsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetStatisticsStatisticsResponseBody struct {
|
||||
Errors []GetStatisticsErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetStatisticsStatisticsResponseBody) GetErrors() []GetStatisticsErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type GetStatisticsDevice struct {
|
||||
ID *int `json:"id,omitempty"`
|
||||
Name *string `json:"name,omitempty"`
|
||||
Platform *string `json:"platform,omitempty"`
|
||||
ClientIdentifier *string `json:"clientIdentifier,omitempty"`
|
||||
CreatedAt *int `json:"createdAt,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetStatisticsDevice) GetID() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ID
|
||||
}
|
||||
|
||||
func (o *GetStatisticsDevice) GetName() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Name
|
||||
}
|
||||
|
||||
func (o *GetStatisticsDevice) GetPlatform() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Platform
|
||||
}
|
||||
|
||||
func (o *GetStatisticsDevice) GetClientIdentifier() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ClientIdentifier
|
||||
}
|
||||
|
||||
func (o *GetStatisticsDevice) GetCreatedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.CreatedAt
|
||||
}
|
||||
|
||||
type Account struct {
|
||||
ID *int `json:"id,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
Name *string `json:"name,omitempty"`
|
||||
DefaultAudioLanguage *string `json:"defaultAudioLanguage,omitempty"`
|
||||
AutoSelectAudio *bool `json:"autoSelectAudio,omitempty"`
|
||||
DefaultSubtitleLanguage *string `json:"defaultSubtitleLanguage,omitempty"`
|
||||
SubtitleMode *int `json:"subtitleMode,omitempty"`
|
||||
Thumb *string `json:"thumb,omitempty"`
|
||||
}
|
||||
|
||||
func (o *Account) GetID() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ID
|
||||
}
|
||||
|
||||
func (o *Account) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *Account) GetName() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Name
|
||||
}
|
||||
|
||||
func (o *Account) GetDefaultAudioLanguage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.DefaultAudioLanguage
|
||||
}
|
||||
|
||||
func (o *Account) GetAutoSelectAudio() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AutoSelectAudio
|
||||
}
|
||||
|
||||
func (o *Account) GetDefaultSubtitleLanguage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.DefaultSubtitleLanguage
|
||||
}
|
||||
|
||||
func (o *Account) GetSubtitleMode() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.SubtitleMode
|
||||
}
|
||||
|
||||
func (o *Account) GetThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Thumb
|
||||
}
|
||||
|
||||
type StatisticsMedia struct {
|
||||
AccountID *int `json:"accountID,omitempty"`
|
||||
DeviceID *int `json:"deviceID,omitempty"`
|
||||
Timespan *int `json:"timespan,omitempty"`
|
||||
At *int `json:"at,omitempty"`
|
||||
MetadataType *int `json:"metadataType,omitempty"`
|
||||
Count *int `json:"count,omitempty"`
|
||||
Duration *int `json:"duration,omitempty"`
|
||||
}
|
||||
|
||||
func (o *StatisticsMedia) GetAccountID() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AccountID
|
||||
}
|
||||
|
||||
func (o *StatisticsMedia) GetDeviceID() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.DeviceID
|
||||
}
|
||||
|
||||
func (o *StatisticsMedia) GetTimespan() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Timespan
|
||||
}
|
||||
|
||||
func (o *StatisticsMedia) GetAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.At
|
||||
}
|
||||
|
||||
func (o *StatisticsMedia) GetMetadataType() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MetadataType
|
||||
}
|
||||
|
||||
func (o *StatisticsMedia) GetCount() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Count
|
||||
}
|
||||
|
||||
func (o *StatisticsMedia) GetDuration() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
type GetStatisticsMediaContainer struct {
|
||||
Size *int `json:"size,omitempty"`
|
||||
Device []GetStatisticsDevice `json:"Device,omitempty"`
|
||||
Account []Account `json:"Account,omitempty"`
|
||||
StatisticsMedia []StatisticsMedia `json:"StatisticsMedia,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetStatisticsMediaContainer) GetSize() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetStatisticsMediaContainer) GetDevice() []GetStatisticsDevice {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Device
|
||||
}
|
||||
|
||||
func (o *GetStatisticsMediaContainer) GetAccount() []Account {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Account
|
||||
}
|
||||
|
||||
func (o *GetStatisticsMediaContainer) GetStatisticsMedia() []StatisticsMedia {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.StatisticsMedia
|
||||
}
|
||||
|
||||
// GetStatisticsResponseBody - Media Statistics
|
||||
type GetStatisticsResponseBody struct {
|
||||
MediaContainer *GetStatisticsMediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetStatisticsResponseBody) GetMediaContainer() *GetStatisticsMediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type GetStatisticsResponse 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
|
||||
// Media Statistics
|
||||
TwoHundredApplicationJSONObject *GetStatisticsResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *GetStatisticsStatisticsResponseBody
|
||||
}
|
||||
|
||||
func (o *GetStatisticsResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetStatisticsResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetStatisticsResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetStatisticsResponse) GetTwoHundredApplicationJSONObject() *GetStatisticsResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *GetStatisticsResponse) GetFourHundredAndOneApplicationJSONObject() *GetStatisticsStatisticsResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
211
internal/sdk/models/operations/gettimeline.go
Normal file
211
internal/sdk/models/operations/gettimeline.go
Normal file
@@ -0,0 +1,211 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// State - The state of the media item
|
||||
type State string
|
||||
|
||||
const (
|
||||
StatePlaying State = "playing"
|
||||
StatePaused State = "paused"
|
||||
StateStopped State = "stopped"
|
||||
)
|
||||
|
||||
func (e State) ToPointer() *State {
|
||||
return &e
|
||||
}
|
||||
|
||||
func (e *State) UnmarshalJSON(data []byte) error {
|
||||
var v string
|
||||
if err := json.Unmarshal(data, &v); err != nil {
|
||||
return err
|
||||
}
|
||||
switch v {
|
||||
case "playing":
|
||||
fallthrough
|
||||
case "paused":
|
||||
fallthrough
|
||||
case "stopped":
|
||||
*e = State(v)
|
||||
return nil
|
||||
default:
|
||||
return fmt.Errorf("invalid value for State: %v", v)
|
||||
}
|
||||
}
|
||||
|
||||
type GetTimelineRequest struct {
|
||||
// The rating key of the media item
|
||||
RatingKey float64 `queryParam:"style=form,explode=true,name=ratingKey"`
|
||||
// The key of the media item to get the timeline for
|
||||
Key string `queryParam:"style=form,explode=true,name=key"`
|
||||
// The state of the media item
|
||||
State State `queryParam:"style=form,explode=true,name=state"`
|
||||
// Whether the media item has MDE
|
||||
HasMDE float64 `queryParam:"style=form,explode=true,name=hasMDE"`
|
||||
// The time of the media item
|
||||
Time float64 `queryParam:"style=form,explode=true,name=time"`
|
||||
// The duration of the media item
|
||||
Duration float64 `queryParam:"style=form,explode=true,name=duration"`
|
||||
// The context of the media item
|
||||
Context string `queryParam:"style=form,explode=true,name=context"`
|
||||
// The play queue item ID of the media item
|
||||
PlayQueueItemID float64 `queryParam:"style=form,explode=true,name=playQueueItemID"`
|
||||
// The playback time of the media item
|
||||
PlayBackTime float64 `queryParam:"style=form,explode=true,name=playBackTime"`
|
||||
// The row of the media item
|
||||
Row float64 `queryParam:"style=form,explode=true,name=row"`
|
||||
}
|
||||
|
||||
func (o *GetTimelineRequest) GetRatingKey() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.RatingKey
|
||||
}
|
||||
|
||||
func (o *GetTimelineRequest) GetKey() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *GetTimelineRequest) GetState() State {
|
||||
if o == nil {
|
||||
return State("")
|
||||
}
|
||||
return o.State
|
||||
}
|
||||
|
||||
func (o *GetTimelineRequest) GetHasMDE() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.HasMDE
|
||||
}
|
||||
|
||||
func (o *GetTimelineRequest) GetTime() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.Time
|
||||
}
|
||||
|
||||
func (o *GetTimelineRequest) GetDuration() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *GetTimelineRequest) GetContext() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.Context
|
||||
}
|
||||
|
||||
func (o *GetTimelineRequest) GetPlayQueueItemID() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.PlayQueueItemID
|
||||
}
|
||||
|
||||
func (o *GetTimelineRequest) GetPlayBackTime() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.PlayBackTime
|
||||
}
|
||||
|
||||
func (o *GetTimelineRequest) GetRow() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.Row
|
||||
}
|
||||
|
||||
type GetTimelineErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetTimelineErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetTimelineErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetTimelineErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetTimelineResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetTimelineResponseBody struct {
|
||||
Errors []GetTimelineErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetTimelineResponseBody) GetErrors() []GetTimelineErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type GetTimelineResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *GetTimelineResponseBody
|
||||
}
|
||||
|
||||
func (o *GetTimelineResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetTimelineResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetTimelineResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetTimelineResponse) GetObject() *GetTimelineResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
113
internal/sdk/models/operations/gettoken.go
Normal file
113
internal/sdk/models/operations/gettoken.go
Normal file
@@ -0,0 +1,113 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
var GetTokenServerList = []string{
|
||||
"https://plex.tv/api/v2",
|
||||
}
|
||||
|
||||
type GetTokenRequest struct {
|
||||
// The PinID to retrieve an access token for
|
||||
PinID string `pathParam:"style=simple,explode=false,name=pinID"`
|
||||
// The unique identifier for the client application
|
||||
// This is used to track the client application and its usage
|
||||
// (UUID, serial number, or other number unique per device)
|
||||
//
|
||||
XPlexClientIdentifier string `header:"style=simple,explode=false,name=X-Plex-Client-Identifier"`
|
||||
}
|
||||
|
||||
func (o *GetTokenRequest) GetPinID() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.PinID
|
||||
}
|
||||
|
||||
func (o *GetTokenRequest) GetXPlexClientIdentifier() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.XPlexClientIdentifier
|
||||
}
|
||||
|
||||
type GetTokenErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetTokenErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetTokenErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetTokenErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetTokenResponseBody - X-Plex-Client-Identifier is missing
|
||||
type GetTokenResponseBody struct {
|
||||
Errors []GetTokenErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetTokenResponseBody) GetErrors() []GetTokenErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type GetTokenResponse 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
|
||||
// X-Plex-Client-Identifier is missing
|
||||
Object *GetTokenResponseBody
|
||||
}
|
||||
|
||||
func (o *GetTokenResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetTokenResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetTokenResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetTokenResponse) GetObject() *GetTokenResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
320
internal/sdk/models/operations/gettranscodesessions.go
Normal file
320
internal/sdk/models/operations/gettranscodesessions.go
Normal file
@@ -0,0 +1,320 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type GetTranscodeSessionsErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetTranscodeSessionsErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetTranscodeSessionsErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetTranscodeSessionsErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetTranscodeSessionsSessionsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetTranscodeSessionsSessionsResponseBody struct {
|
||||
Errors []GetTranscodeSessionsErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetTranscodeSessionsSessionsResponseBody) GetErrors() []GetTranscodeSessionsErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type TranscodeSession struct {
|
||||
Key *string `json:"key,omitempty"`
|
||||
Throttled *bool `json:"throttled,omitempty"`
|
||||
Complete *bool `json:"complete,omitempty"`
|
||||
Progress *float64 `json:"progress,omitempty"`
|
||||
Size *int `json:"size,omitempty"`
|
||||
Speed *float64 `json:"speed,omitempty"`
|
||||
Error *bool `json:"error,omitempty"`
|
||||
Duration *int `json:"duration,omitempty"`
|
||||
Remaining *int `json:"remaining,omitempty"`
|
||||
Context *string `json:"context,omitempty"`
|
||||
SourceVideoCodec *string `json:"sourceVideoCodec,omitempty"`
|
||||
SourceAudioCodec *string `json:"sourceAudioCodec,omitempty"`
|
||||
VideoDecision *string `json:"videoDecision,omitempty"`
|
||||
AudioDecision *string `json:"audioDecision,omitempty"`
|
||||
SubtitleDecision *string `json:"subtitleDecision,omitempty"`
|
||||
Protocol *string `json:"protocol,omitempty"`
|
||||
Container *string `json:"container,omitempty"`
|
||||
VideoCodec *string `json:"videoCodec,omitempty"`
|
||||
AudioCodec *string `json:"audioCodec,omitempty"`
|
||||
AudioChannels *int `json:"audioChannels,omitempty"`
|
||||
TranscodeHwRequested *bool `json:"transcodeHwRequested,omitempty"`
|
||||
TimeStamp *float64 `json:"timeStamp,omitempty"`
|
||||
MaxOffsetAvailable *float64 `json:"maxOffsetAvailable,omitempty"`
|
||||
MinOffsetAvailable *float64 `json:"minOffsetAvailable,omitempty"`
|
||||
}
|
||||
|
||||
func (o *TranscodeSession) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *TranscodeSession) GetThrottled() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Throttled
|
||||
}
|
||||
|
||||
func (o *TranscodeSession) GetComplete() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Complete
|
||||
}
|
||||
|
||||
func (o *TranscodeSession) GetProgress() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Progress
|
||||
}
|
||||
|
||||
func (o *TranscodeSession) GetSize() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *TranscodeSession) GetSpeed() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Speed
|
||||
}
|
||||
|
||||
func (o *TranscodeSession) GetError() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Error
|
||||
}
|
||||
|
||||
func (o *TranscodeSession) GetDuration() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Duration
|
||||
}
|
||||
|
||||
func (o *TranscodeSession) GetRemaining() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Remaining
|
||||
}
|
||||
|
||||
func (o *TranscodeSession) GetContext() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Context
|
||||
}
|
||||
|
||||
func (o *TranscodeSession) GetSourceVideoCodec() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.SourceVideoCodec
|
||||
}
|
||||
|
||||
func (o *TranscodeSession) GetSourceAudioCodec() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.SourceAudioCodec
|
||||
}
|
||||
|
||||
func (o *TranscodeSession) GetVideoDecision() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoDecision
|
||||
}
|
||||
|
||||
func (o *TranscodeSession) GetAudioDecision() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioDecision
|
||||
}
|
||||
|
||||
func (o *TranscodeSession) GetSubtitleDecision() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.SubtitleDecision
|
||||
}
|
||||
|
||||
func (o *TranscodeSession) GetProtocol() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Protocol
|
||||
}
|
||||
|
||||
func (o *TranscodeSession) GetContainer() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Container
|
||||
}
|
||||
|
||||
func (o *TranscodeSession) GetVideoCodec() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.VideoCodec
|
||||
}
|
||||
|
||||
func (o *TranscodeSession) GetAudioCodec() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioCodec
|
||||
}
|
||||
|
||||
func (o *TranscodeSession) GetAudioChannels() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioChannels
|
||||
}
|
||||
|
||||
func (o *TranscodeSession) GetTranscodeHwRequested() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TranscodeHwRequested
|
||||
}
|
||||
|
||||
func (o *TranscodeSession) GetTimeStamp() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TimeStamp
|
||||
}
|
||||
|
||||
func (o *TranscodeSession) GetMaxOffsetAvailable() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MaxOffsetAvailable
|
||||
}
|
||||
|
||||
func (o *TranscodeSession) GetMinOffsetAvailable() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MinOffsetAvailable
|
||||
}
|
||||
|
||||
type GetTranscodeSessionsMediaContainer struct {
|
||||
Size *int `json:"size,omitempty"`
|
||||
TranscodeSession []TranscodeSession `json:"TranscodeSession,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetTranscodeSessionsMediaContainer) GetSize() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetTranscodeSessionsMediaContainer) GetTranscodeSession() []TranscodeSession {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TranscodeSession
|
||||
}
|
||||
|
||||
// GetTranscodeSessionsResponseBody - The Transcode Sessions
|
||||
type GetTranscodeSessionsResponseBody struct {
|
||||
MediaContainer *GetTranscodeSessionsMediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetTranscodeSessionsResponseBody) GetMediaContainer() *GetTranscodeSessionsMediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type GetTranscodeSessionsResponse 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
|
||||
// The Transcode Sessions
|
||||
TwoHundredApplicationJSONObject *GetTranscodeSessionsResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *GetTranscodeSessionsSessionsResponseBody
|
||||
}
|
||||
|
||||
func (o *GetTranscodeSessionsResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetTranscodeSessionsResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetTranscodeSessionsResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetTranscodeSessionsResponse) GetTwoHundredApplicationJSONObject() *GetTranscodeSessionsResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *GetTranscodeSessionsResponse) GetFourHundredAndOneApplicationJSONObject() *GetTranscodeSessionsSessionsResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
158
internal/sdk/models/operations/gettransienttoken.go
Normal file
158
internal/sdk/models/operations/gettransienttoken.go
Normal file
@@ -0,0 +1,158 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// GetTransientTokenQueryParamType - `delegation` - This is the only supported `type` parameter.
|
||||
type GetTransientTokenQueryParamType string
|
||||
|
||||
const (
|
||||
GetTransientTokenQueryParamTypeDelegation GetTransientTokenQueryParamType = "delegation"
|
||||
)
|
||||
|
||||
func (e GetTransientTokenQueryParamType) ToPointer() *GetTransientTokenQueryParamType {
|
||||
return &e
|
||||
}
|
||||
|
||||
func (e *GetTransientTokenQueryParamType) UnmarshalJSON(data []byte) error {
|
||||
var v string
|
||||
if err := json.Unmarshal(data, &v); err != nil {
|
||||
return err
|
||||
}
|
||||
switch v {
|
||||
case "delegation":
|
||||
*e = GetTransientTokenQueryParamType(v)
|
||||
return nil
|
||||
default:
|
||||
return fmt.Errorf("invalid value for GetTransientTokenQueryParamType: %v", v)
|
||||
}
|
||||
}
|
||||
|
||||
// Scope - `all` - This is the only supported `scope` parameter.
|
||||
type Scope string
|
||||
|
||||
const (
|
||||
ScopeAll Scope = "all"
|
||||
)
|
||||
|
||||
func (e Scope) ToPointer() *Scope {
|
||||
return &e
|
||||
}
|
||||
|
||||
func (e *Scope) UnmarshalJSON(data []byte) error {
|
||||
var v string
|
||||
if err := json.Unmarshal(data, &v); err != nil {
|
||||
return err
|
||||
}
|
||||
switch v {
|
||||
case "all":
|
||||
*e = Scope(v)
|
||||
return nil
|
||||
default:
|
||||
return fmt.Errorf("invalid value for Scope: %v", v)
|
||||
}
|
||||
}
|
||||
|
||||
type GetTransientTokenRequest struct {
|
||||
// `delegation` - This is the only supported `type` parameter.
|
||||
Type GetTransientTokenQueryParamType `queryParam:"style=form,explode=true,name=type"`
|
||||
// `all` - This is the only supported `scope` parameter.
|
||||
Scope Scope `queryParam:"style=form,explode=true,name=scope"`
|
||||
}
|
||||
|
||||
func (o *GetTransientTokenRequest) GetType() GetTransientTokenQueryParamType {
|
||||
if o == nil {
|
||||
return GetTransientTokenQueryParamType("")
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
func (o *GetTransientTokenRequest) GetScope() Scope {
|
||||
if o == nil {
|
||||
return Scope("")
|
||||
}
|
||||
return o.Scope
|
||||
}
|
||||
|
||||
type GetTransientTokenErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetTransientTokenErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetTransientTokenErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetTransientTokenErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetTransientTokenResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetTransientTokenResponseBody struct {
|
||||
Errors []GetTransientTokenErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetTransientTokenResponseBody) GetErrors() []GetTransientTokenErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type GetTransientTokenResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *GetTransientTokenResponseBody
|
||||
}
|
||||
|
||||
func (o *GetTransientTokenResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetTransientTokenResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetTransientTokenResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetTransientTokenResponse) GetObject() *GetTransientTokenResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
208
internal/sdk/models/operations/getupdatestatus.go
Normal file
208
internal/sdk/models/operations/getupdatestatus.go
Normal file
@@ -0,0 +1,208 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type GetUpdateStatusErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetUpdateStatusErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *GetUpdateStatusErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *GetUpdateStatusErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// GetUpdateStatusUpdaterResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type GetUpdateStatusUpdaterResponseBody struct {
|
||||
Errors []GetUpdateStatusErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetUpdateStatusUpdaterResponseBody) GetErrors() []GetUpdateStatusErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type Release struct {
|
||||
Key *string `json:"key,omitempty"`
|
||||
Version *string `json:"version,omitempty"`
|
||||
Added *string `json:"added,omitempty"`
|
||||
Fixed *string `json:"fixed,omitempty"`
|
||||
DownloadURL *string `json:"downloadURL,omitempty"`
|
||||
State *string `json:"state,omitempty"`
|
||||
}
|
||||
|
||||
func (o *Release) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *Release) GetVersion() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Version
|
||||
}
|
||||
|
||||
func (o *Release) GetAdded() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Added
|
||||
}
|
||||
|
||||
func (o *Release) GetFixed() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Fixed
|
||||
}
|
||||
|
||||
func (o *Release) GetDownloadURL() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.DownloadURL
|
||||
}
|
||||
|
||||
func (o *Release) GetState() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.State
|
||||
}
|
||||
|
||||
type GetUpdateStatusMediaContainer struct {
|
||||
Size *int `json:"size,omitempty"`
|
||||
CanInstall *bool `json:"canInstall,omitempty"`
|
||||
CheckedAt *int `json:"checkedAt,omitempty"`
|
||||
DownloadURL *string `json:"downloadURL,omitempty"`
|
||||
Status *int `json:"status,omitempty"`
|
||||
Release []Release `json:"Release,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetUpdateStatusMediaContainer) GetSize() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *GetUpdateStatusMediaContainer) GetCanInstall() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.CanInstall
|
||||
}
|
||||
|
||||
func (o *GetUpdateStatusMediaContainer) GetCheckedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.CheckedAt
|
||||
}
|
||||
|
||||
func (o *GetUpdateStatusMediaContainer) GetDownloadURL() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.DownloadURL
|
||||
}
|
||||
|
||||
func (o *GetUpdateStatusMediaContainer) GetStatus() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
func (o *GetUpdateStatusMediaContainer) GetRelease() []Release {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Release
|
||||
}
|
||||
|
||||
// GetUpdateStatusResponseBody - The Server Updates
|
||||
type GetUpdateStatusResponseBody struct {
|
||||
MediaContainer *GetUpdateStatusMediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *GetUpdateStatusResponseBody) GetMediaContainer() *GetUpdateStatusMediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type GetUpdateStatusResponse 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
|
||||
// The Server Updates
|
||||
TwoHundredApplicationJSONObject *GetUpdateStatusResponseBody
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
FourHundredAndOneApplicationJSONObject *GetUpdateStatusUpdaterResponseBody
|
||||
}
|
||||
|
||||
func (o *GetUpdateStatusResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *GetUpdateStatusResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *GetUpdateStatusResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *GetUpdateStatusResponse) GetTwoHundredApplicationJSONObject() *GetUpdateStatusResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.TwoHundredApplicationJSONObject
|
||||
}
|
||||
|
||||
func (o *GetUpdateStatusResponse) GetFourHundredAndOneApplicationJSONObject() *GetUpdateStatusUpdaterResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FourHundredAndOneApplicationJSONObject
|
||||
}
|
||||
165
internal/sdk/models/operations/logline.go
Normal file
165
internal/sdk/models/operations/logline.go
Normal file
@@ -0,0 +1,165 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// Level - An integer log level to write to the PMS log with.
|
||||
// 0: Error
|
||||
// 1: Warning
|
||||
// 2: Info
|
||||
// 3: Debug
|
||||
// 4: Verbose
|
||||
type Level int64
|
||||
|
||||
const (
|
||||
LevelZero Level = 0
|
||||
LevelOne Level = 1
|
||||
LevelTwo Level = 2
|
||||
LevelThree Level = 3
|
||||
LevelFour Level = 4
|
||||
)
|
||||
|
||||
func (e Level) ToPointer() *Level {
|
||||
return &e
|
||||
}
|
||||
|
||||
func (e *Level) UnmarshalJSON(data []byte) error {
|
||||
var v int64
|
||||
if err := json.Unmarshal(data, &v); err != nil {
|
||||
return err
|
||||
}
|
||||
switch v {
|
||||
case 0:
|
||||
fallthrough
|
||||
case 1:
|
||||
fallthrough
|
||||
case 2:
|
||||
fallthrough
|
||||
case 3:
|
||||
fallthrough
|
||||
case 4:
|
||||
*e = Level(v)
|
||||
return nil
|
||||
default:
|
||||
return fmt.Errorf("invalid value for Level: %v", v)
|
||||
}
|
||||
}
|
||||
|
||||
type LogLineRequest struct {
|
||||
// An integer log level to write to the PMS log with.
|
||||
// 0: Error
|
||||
// 1: Warning
|
||||
// 2: Info
|
||||
// 3: Debug
|
||||
// 4: Verbose
|
||||
//
|
||||
Level Level `queryParam:"style=form,explode=true,name=level"`
|
||||
// The text of the message to write to the log.
|
||||
Message string `queryParam:"style=form,explode=true,name=message"`
|
||||
// a string indicating the source of the message.
|
||||
Source string `queryParam:"style=form,explode=true,name=source"`
|
||||
}
|
||||
|
||||
func (o *LogLineRequest) GetLevel() Level {
|
||||
if o == nil {
|
||||
return Level(0)
|
||||
}
|
||||
return o.Level
|
||||
}
|
||||
|
||||
func (o *LogLineRequest) GetMessage() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *LogLineRequest) GetSource() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.Source
|
||||
}
|
||||
|
||||
type LogLineErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *LogLineErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *LogLineErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *LogLineErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// LogLineResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type LogLineResponseBody struct {
|
||||
Errors []LogLineErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *LogLineResponseBody) GetErrors() []LogLineErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type LogLineResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *LogLineResponseBody
|
||||
}
|
||||
|
||||
func (o *LogLineResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *LogLineResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *LogLineResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *LogLineResponse) GetObject() *LogLineResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
85
internal/sdk/models/operations/logmultiline.go
Normal file
85
internal/sdk/models/operations/logmultiline.go
Normal file
@@ -0,0 +1,85 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type LogMultiLineErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *LogMultiLineErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *LogMultiLineErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *LogMultiLineErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// LogMultiLineResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type LogMultiLineResponseBody struct {
|
||||
Errors []LogMultiLineErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *LogMultiLineResponseBody) GetErrors() []LogMultiLineErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type LogMultiLineResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *LogMultiLineResponseBody
|
||||
}
|
||||
|
||||
func (o *LogMultiLineResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *LogMultiLineResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *LogMultiLineResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *LogMultiLineResponse) GetObject() *LogMultiLineResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
97
internal/sdk/models/operations/markplayed.go
Normal file
97
internal/sdk/models/operations/markplayed.go
Normal file
@@ -0,0 +1,97 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type MarkPlayedRequest struct {
|
||||
// The media key to mark as played
|
||||
Key float64 `queryParam:"style=form,explode=true,name=key"`
|
||||
}
|
||||
|
||||
func (o *MarkPlayedRequest) GetKey() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
type MarkPlayedErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *MarkPlayedErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *MarkPlayedErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *MarkPlayedErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// MarkPlayedResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type MarkPlayedResponseBody struct {
|
||||
Errors []MarkPlayedErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *MarkPlayedResponseBody) GetErrors() []MarkPlayedErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type MarkPlayedResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *MarkPlayedResponseBody
|
||||
}
|
||||
|
||||
func (o *MarkPlayedResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *MarkPlayedResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *MarkPlayedResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *MarkPlayedResponse) GetObject() *MarkPlayedResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
97
internal/sdk/models/operations/markunplayed.go
Normal file
97
internal/sdk/models/operations/markunplayed.go
Normal file
@@ -0,0 +1,97 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type MarkUnplayedRequest struct {
|
||||
// The media key to mark as Unplayed
|
||||
Key float64 `queryParam:"style=form,explode=true,name=key"`
|
||||
}
|
||||
|
||||
func (o *MarkUnplayedRequest) GetKey() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
type MarkUnplayedErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *MarkUnplayedErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *MarkUnplayedErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *MarkUnplayedErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// MarkUnplayedResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type MarkUnplayedResponseBody struct {
|
||||
Errors []MarkUnplayedErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *MarkUnplayedResponseBody) GetErrors() []MarkUnplayedErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type MarkUnplayedResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *MarkUnplayedResponseBody
|
||||
}
|
||||
|
||||
func (o *MarkUnplayedResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *MarkUnplayedResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *MarkUnplayedResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *MarkUnplayedResponse) GetObject() *MarkUnplayedResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
63
internal/sdk/models/operations/options.go
Normal file
63
internal/sdk/models/operations/options.go
Normal file
@@ -0,0 +1,63 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"github.com/LukeHagar/terraform-provider-PlexAPI/internal/sdk/internal/utils"
|
||||
)
|
||||
|
||||
var ErrUnsupportedOption = errors.New("unsupported option")
|
||||
|
||||
const (
|
||||
SupportedOptionServerURL = "serverURL"
|
||||
SupportedOptionRetries = "retries"
|
||||
SupportedOptionAcceptHeaderOverride = "acceptHeaderOverride"
|
||||
)
|
||||
|
||||
type Options struct {
|
||||
ServerURL *string
|
||||
Retries *utils.RetryConfig
|
||||
}
|
||||
|
||||
type Option func(*Options, ...string) error
|
||||
|
||||
// WithServerURL allows providing an alternative server URL.
|
||||
func WithServerURL(serverURL string) Option {
|
||||
return func(opts *Options, supportedOptions ...string) error {
|
||||
if !utils.Contains(supportedOptions, SupportedOptionServerURL) {
|
||||
return ErrUnsupportedOption
|
||||
}
|
||||
|
||||
opts.ServerURL = &serverURL
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// WithTemplatedServerURL allows providing an alternative server URL with templated parameters.
|
||||
func WithTemplatedServerURL(serverURL string, params map[string]string) Option {
|
||||
return func(opts *Options, supportedOptions ...string) error {
|
||||
if !utils.Contains(supportedOptions, SupportedOptionServerURL) {
|
||||
return ErrUnsupportedOption
|
||||
}
|
||||
|
||||
if params != nil {
|
||||
serverURL = utils.ReplaceParameters(serverURL, params)
|
||||
}
|
||||
|
||||
opts.ServerURL = &serverURL
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// WithRetries allows customizing the default retry configuration.
|
||||
func WithRetries(config utils.RetryConfig) Option {
|
||||
return func(opts *Options, supportedOptions ...string) error {
|
||||
if !utils.Contains(supportedOptions, SupportedOptionRetries) {
|
||||
return ErrUnsupportedOption
|
||||
}
|
||||
|
||||
opts.Retries = &config
|
||||
return nil
|
||||
}
|
||||
}
|
||||
127
internal/sdk/models/operations/performsearch.go
Normal file
127
internal/sdk/models/operations/performsearch.go
Normal file
@@ -0,0 +1,127 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"github.com/LukeHagar/terraform-provider-PlexAPI/internal/sdk/internal/utils"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type PerformSearchRequest struct {
|
||||
// The query term
|
||||
Query string `queryParam:"style=form,explode=true,name=query"`
|
||||
// This gives context to the search, and can result in re-ordering of search result hubs
|
||||
SectionID *float64 `queryParam:"style=form,explode=true,name=sectionId"`
|
||||
// The number of items to return per hub
|
||||
Limit *float64 `default:"3" queryParam:"style=form,explode=true,name=limit"`
|
||||
}
|
||||
|
||||
func (p PerformSearchRequest) MarshalJSON() ([]byte, error) {
|
||||
return utils.MarshalJSON(p, "", false)
|
||||
}
|
||||
|
||||
func (p *PerformSearchRequest) UnmarshalJSON(data []byte) error {
|
||||
if err := utils.UnmarshalJSON(data, &p, "", false, false); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (o *PerformSearchRequest) GetQuery() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.Query
|
||||
}
|
||||
|
||||
func (o *PerformSearchRequest) GetSectionID() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.SectionID
|
||||
}
|
||||
|
||||
func (o *PerformSearchRequest) GetLimit() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Limit
|
||||
}
|
||||
|
||||
type PerformSearchErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *PerformSearchErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *PerformSearchErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *PerformSearchErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// PerformSearchResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type PerformSearchResponseBody struct {
|
||||
Errors []PerformSearchErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *PerformSearchResponseBody) GetErrors() []PerformSearchErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type PerformSearchResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *PerformSearchResponseBody
|
||||
}
|
||||
|
||||
func (o *PerformSearchResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *PerformSearchResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *PerformSearchResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *PerformSearchResponse) GetObject() *PerformSearchResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
127
internal/sdk/models/operations/performvoicesearch.go
Normal file
127
internal/sdk/models/operations/performvoicesearch.go
Normal file
@@ -0,0 +1,127 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"github.com/LukeHagar/terraform-provider-PlexAPI/internal/sdk/internal/utils"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type PerformVoiceSearchRequest struct {
|
||||
// The query term
|
||||
Query string `queryParam:"style=form,explode=true,name=query"`
|
||||
// This gives context to the search, and can result in re-ordering of search result hubs
|
||||
SectionID *float64 `queryParam:"style=form,explode=true,name=sectionId"`
|
||||
// The number of items to return per hub
|
||||
Limit *float64 `default:"3" queryParam:"style=form,explode=true,name=limit"`
|
||||
}
|
||||
|
||||
func (p PerformVoiceSearchRequest) MarshalJSON() ([]byte, error) {
|
||||
return utils.MarshalJSON(p, "", false)
|
||||
}
|
||||
|
||||
func (p *PerformVoiceSearchRequest) UnmarshalJSON(data []byte) error {
|
||||
if err := utils.UnmarshalJSON(data, &p, "", false, false); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (o *PerformVoiceSearchRequest) GetQuery() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.Query
|
||||
}
|
||||
|
||||
func (o *PerformVoiceSearchRequest) GetSectionID() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.SectionID
|
||||
}
|
||||
|
||||
func (o *PerformVoiceSearchRequest) GetLimit() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Limit
|
||||
}
|
||||
|
||||
type PerformVoiceSearchErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *PerformVoiceSearchErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *PerformVoiceSearchErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *PerformVoiceSearchErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// PerformVoiceSearchResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type PerformVoiceSearchResponseBody struct {
|
||||
Errors []PerformVoiceSearchErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *PerformVoiceSearchResponseBody) GetErrors() []PerformVoiceSearchErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type PerformVoiceSearchResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *PerformVoiceSearchResponseBody
|
||||
}
|
||||
|
||||
func (o *PerformVoiceSearchResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *PerformVoiceSearchResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *PerformVoiceSearchResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *PerformVoiceSearchResponse) GetObject() *PerformVoiceSearchResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
97
internal/sdk/models/operations/refreshlibrary.go
Normal file
97
internal/sdk/models/operations/refreshlibrary.go
Normal file
@@ -0,0 +1,97 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type RefreshLibraryRequest struct {
|
||||
// the Id of the library to refresh
|
||||
SectionID float64 `pathParam:"style=simple,explode=false,name=sectionId"`
|
||||
}
|
||||
|
||||
func (o *RefreshLibraryRequest) GetSectionID() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.SectionID
|
||||
}
|
||||
|
||||
type RefreshLibraryErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *RefreshLibraryErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *RefreshLibraryErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *RefreshLibraryErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// RefreshLibraryResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type RefreshLibraryResponseBody struct {
|
||||
Errors []RefreshLibraryErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *RefreshLibraryResponseBody) GetErrors() []RefreshLibraryErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type RefreshLibraryResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *RefreshLibraryResponseBody
|
||||
}
|
||||
|
||||
func (o *RefreshLibraryResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *RefreshLibraryResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *RefreshLibraryResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *RefreshLibraryResponse) GetObject() *RefreshLibraryResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
385
internal/sdk/models/operations/searchlibrary.go
Normal file
385
internal/sdk/models/operations/searchlibrary.go
Normal file
@@ -0,0 +1,385 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// Type - Plex content type to search for
|
||||
type Type int64
|
||||
|
||||
const (
|
||||
TypeOne Type = 1
|
||||
TypeTwo Type = 2
|
||||
TypeThree Type = 3
|
||||
TypeFour Type = 4
|
||||
)
|
||||
|
||||
func (e Type) ToPointer() *Type {
|
||||
return &e
|
||||
}
|
||||
|
||||
func (e *Type) UnmarshalJSON(data []byte) error {
|
||||
var v int64
|
||||
if err := json.Unmarshal(data, &v); err != nil {
|
||||
return err
|
||||
}
|
||||
switch v {
|
||||
case 1:
|
||||
fallthrough
|
||||
case 2:
|
||||
fallthrough
|
||||
case 3:
|
||||
fallthrough
|
||||
case 4:
|
||||
*e = Type(v)
|
||||
return nil
|
||||
default:
|
||||
return fmt.Errorf("invalid value for Type: %v", v)
|
||||
}
|
||||
}
|
||||
|
||||
type SearchLibraryRequest struct {
|
||||
// the Id of the library to query
|
||||
SectionID int64 `pathParam:"style=simple,explode=false,name=sectionId"`
|
||||
// Plex content type to search for
|
||||
Type Type `queryParam:"style=form,explode=true,name=type"`
|
||||
}
|
||||
|
||||
func (o *SearchLibraryRequest) GetSectionID() int64 {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.SectionID
|
||||
}
|
||||
|
||||
func (o *SearchLibraryRequest) GetType() Type {
|
||||
if o == nil {
|
||||
return Type(0)
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
type SearchLibraryMetadata struct {
|
||||
RatingKey *string `json:"ratingKey,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
ParentRatingKey *string `json:"parentRatingKey,omitempty"`
|
||||
GUID *string `json:"guid,omitempty"`
|
||||
ParentGUID *string `json:"parentGuid,omitempty"`
|
||||
ParentStudio *string `json:"parentStudio,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
ParentKey *string `json:"parentKey,omitempty"`
|
||||
ParentTitle *string `json:"parentTitle,omitempty"`
|
||||
Summary *string `json:"summary,omitempty"`
|
||||
Index *int `json:"index,omitempty"`
|
||||
ParentIndex *int `json:"parentIndex,omitempty"`
|
||||
ParentYear *int `json:"parentYear,omitempty"`
|
||||
Thumb *string `json:"thumb,omitempty"`
|
||||
Art *string `json:"art,omitempty"`
|
||||
ParentThumb *string `json:"parentThumb,omitempty"`
|
||||
ParentTheme *string `json:"parentTheme,omitempty"`
|
||||
AddedAt *int `json:"addedAt,omitempty"`
|
||||
UpdatedAt *int `json:"updatedAt,omitempty"`
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMetadata) GetRatingKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RatingKey
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMetadata) GetKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMetadata) GetParentRatingKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentRatingKey
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMetadata) GetGUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.GUID
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMetadata) GetParentGUID() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentGUID
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMetadata) GetParentStudio() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentStudio
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMetadata) GetType() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Type
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMetadata) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMetadata) GetParentKey() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentKey
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMetadata) GetParentTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentTitle
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMetadata) GetSummary() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Summary
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMetadata) GetIndex() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Index
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMetadata) GetParentIndex() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentIndex
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMetadata) GetParentYear() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentYear
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMetadata) GetThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Thumb
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMetadata) GetArt() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Art
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMetadata) GetParentThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentThumb
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMetadata) GetParentTheme() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ParentTheme
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMetadata) GetAddedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AddedAt
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMetadata) GetUpdatedAt() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.UpdatedAt
|
||||
}
|
||||
|
||||
type SearchLibraryMediaContainer struct {
|
||||
Size *int `json:"size,omitempty"`
|
||||
AllowSync *bool `json:"allowSync,omitempty"`
|
||||
Art *string `json:"art,omitempty"`
|
||||
Identifier *string `json:"identifier,omitempty"`
|
||||
MediaTagPrefix *string `json:"mediaTagPrefix,omitempty"`
|
||||
MediaTagVersion *int `json:"mediaTagVersion,omitempty"`
|
||||
Nocache *bool `json:"nocache,omitempty"`
|
||||
Thumb *string `json:"thumb,omitempty"`
|
||||
Title1 *string `json:"title1,omitempty"`
|
||||
Title2 *string `json:"title2,omitempty"`
|
||||
ViewGroup *string `json:"viewGroup,omitempty"`
|
||||
ViewMode *int `json:"viewMode,omitempty"`
|
||||
Metadata []SearchLibraryMetadata `json:"Metadata,omitempty"`
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMediaContainer) GetSize() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Size
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMediaContainer) GetAllowSync() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AllowSync
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMediaContainer) GetArt() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Art
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMediaContainer) GetIdentifier() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Identifier
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMediaContainer) GetMediaTagPrefix() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaTagPrefix
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMediaContainer) GetMediaTagVersion() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaTagVersion
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMediaContainer) GetNocache() *bool {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Nocache
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMediaContainer) GetThumb() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Thumb
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMediaContainer) GetTitle1() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title1
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMediaContainer) GetTitle2() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title2
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMediaContainer) GetViewGroup() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ViewGroup
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMediaContainer) GetViewMode() *int {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.ViewMode
|
||||
}
|
||||
|
||||
func (o *SearchLibraryMediaContainer) GetMetadata() []SearchLibraryMetadata {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Metadata
|
||||
}
|
||||
|
||||
// SearchLibraryResponseBody - The contents of the library by section and type
|
||||
type SearchLibraryResponseBody struct {
|
||||
MediaContainer *SearchLibraryMediaContainer `json:"MediaContainer,omitempty"`
|
||||
}
|
||||
|
||||
func (o *SearchLibraryResponseBody) GetMediaContainer() *SearchLibraryMediaContainer {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaContainer
|
||||
}
|
||||
|
||||
type SearchLibraryResponse 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
|
||||
// The contents of the library by section and type
|
||||
Object *SearchLibraryResponseBody
|
||||
}
|
||||
|
||||
func (o *SearchLibraryResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *SearchLibraryResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *SearchLibraryResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *SearchLibraryResponse) GetObject() *SearchLibraryResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
85
internal/sdk/models/operations/startalltasks.go
Normal file
85
internal/sdk/models/operations/startalltasks.go
Normal file
@@ -0,0 +1,85 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type StartAllTasksErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *StartAllTasksErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *StartAllTasksErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *StartAllTasksErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// StartAllTasksResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type StartAllTasksResponseBody struct {
|
||||
Errors []StartAllTasksErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *StartAllTasksResponseBody) GetErrors() []StartAllTasksErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type StartAllTasksResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *StartAllTasksResponseBody
|
||||
}
|
||||
|
||||
func (o *StartAllTasksResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *StartAllTasksResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *StartAllTasksResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *StartAllTasksResponse) GetObject() *StartAllTasksResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
163
internal/sdk/models/operations/starttask.go
Normal file
163
internal/sdk/models/operations/starttask.go
Normal file
@@ -0,0 +1,163 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// TaskName - the name of the task to be started.
|
||||
type TaskName string
|
||||
|
||||
const (
|
||||
TaskNameBackupDatabase TaskName = "BackupDatabase"
|
||||
TaskNameBuildGracenoteCollections TaskName = "BuildGracenoteCollections"
|
||||
TaskNameCheckForUpdates TaskName = "CheckForUpdates"
|
||||
TaskNameCleanOldBundles TaskName = "CleanOldBundles"
|
||||
TaskNameCleanOldCacheFiles TaskName = "CleanOldCacheFiles"
|
||||
TaskNameDeepMediaAnalysis TaskName = "DeepMediaAnalysis"
|
||||
TaskNameGenerateAutoTags TaskName = "GenerateAutoTags"
|
||||
TaskNameGenerateChapterThumbs TaskName = "GenerateChapterThumbs"
|
||||
TaskNameGenerateMediaIndexFiles TaskName = "GenerateMediaIndexFiles"
|
||||
TaskNameOptimizeDatabase TaskName = "OptimizeDatabase"
|
||||
TaskNameRefreshLibraries TaskName = "RefreshLibraries"
|
||||
TaskNameRefreshLocalMedia TaskName = "RefreshLocalMedia"
|
||||
TaskNameRefreshPeriodicMetadata TaskName = "RefreshPeriodicMetadata"
|
||||
TaskNameUpgradeMediaAnalysis TaskName = "UpgradeMediaAnalysis"
|
||||
)
|
||||
|
||||
func (e TaskName) ToPointer() *TaskName {
|
||||
return &e
|
||||
}
|
||||
|
||||
func (e *TaskName) UnmarshalJSON(data []byte) error {
|
||||
var v string
|
||||
if err := json.Unmarshal(data, &v); err != nil {
|
||||
return err
|
||||
}
|
||||
switch v {
|
||||
case "BackupDatabase":
|
||||
fallthrough
|
||||
case "BuildGracenoteCollections":
|
||||
fallthrough
|
||||
case "CheckForUpdates":
|
||||
fallthrough
|
||||
case "CleanOldBundles":
|
||||
fallthrough
|
||||
case "CleanOldCacheFiles":
|
||||
fallthrough
|
||||
case "DeepMediaAnalysis":
|
||||
fallthrough
|
||||
case "GenerateAutoTags":
|
||||
fallthrough
|
||||
case "GenerateChapterThumbs":
|
||||
fallthrough
|
||||
case "GenerateMediaIndexFiles":
|
||||
fallthrough
|
||||
case "OptimizeDatabase":
|
||||
fallthrough
|
||||
case "RefreshLibraries":
|
||||
fallthrough
|
||||
case "RefreshLocalMedia":
|
||||
fallthrough
|
||||
case "RefreshPeriodicMetadata":
|
||||
fallthrough
|
||||
case "UpgradeMediaAnalysis":
|
||||
*e = TaskName(v)
|
||||
return nil
|
||||
default:
|
||||
return fmt.Errorf("invalid value for TaskName: %v", v)
|
||||
}
|
||||
}
|
||||
|
||||
type StartTaskRequest struct {
|
||||
// the name of the task to be started.
|
||||
TaskName TaskName `pathParam:"style=simple,explode=false,name=taskName"`
|
||||
}
|
||||
|
||||
func (o *StartTaskRequest) GetTaskName() TaskName {
|
||||
if o == nil {
|
||||
return TaskName("")
|
||||
}
|
||||
return o.TaskName
|
||||
}
|
||||
|
||||
type StartTaskErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *StartTaskErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *StartTaskErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *StartTaskErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// StartTaskResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type StartTaskResponseBody struct {
|
||||
Errors []StartTaskErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *StartTaskResponseBody) GetErrors() []StartTaskErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type StartTaskResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *StartTaskResponseBody
|
||||
}
|
||||
|
||||
func (o *StartTaskResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *StartTaskResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *StartTaskResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *StartTaskResponse) GetObject() *StartTaskResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
232
internal/sdk/models/operations/startuniversaltranscode.go
Normal file
232
internal/sdk/models/operations/startuniversaltranscode.go
Normal file
@@ -0,0 +1,232 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type StartUniversalTranscodeRequest struct {
|
||||
// Whether the media item has MDE
|
||||
HasMDE float64 `queryParam:"style=form,explode=true,name=hasMDE"`
|
||||
// The path to the media item to transcode
|
||||
Path string `queryParam:"style=form,explode=true,name=path"`
|
||||
// The index of the media item to transcode
|
||||
MediaIndex float64 `queryParam:"style=form,explode=true,name=mediaIndex"`
|
||||
// The index of the part to transcode
|
||||
PartIndex float64 `queryParam:"style=form,explode=true,name=partIndex"`
|
||||
// The protocol to use for the transcode session
|
||||
Protocol string `queryParam:"style=form,explode=true,name=protocol"`
|
||||
// Whether to use fast seek or not
|
||||
FastSeek *float64 `queryParam:"style=form,explode=true,name=fastSeek"`
|
||||
// Whether to use direct play or not
|
||||
DirectPlay *float64 `queryParam:"style=form,explode=true,name=directPlay"`
|
||||
// Whether to use direct stream or not
|
||||
DirectStream *float64 `queryParam:"style=form,explode=true,name=directStream"`
|
||||
// The size of the subtitles
|
||||
SubtitleSize *float64 `queryParam:"style=form,explode=true,name=subtitleSize"`
|
||||
// The subtitles
|
||||
Subtites *string `queryParam:"style=form,explode=true,name=subtites"`
|
||||
// The audio boost
|
||||
AudioBoost *float64 `queryParam:"style=form,explode=true,name=audioBoost"`
|
||||
// The location of the transcode session
|
||||
Location *string `queryParam:"style=form,explode=true,name=location"`
|
||||
// The size of the media buffer
|
||||
MediaBufferSize *float64 `queryParam:"style=form,explode=true,name=mediaBufferSize"`
|
||||
// The session ID
|
||||
Session *string `queryParam:"style=form,explode=true,name=session"`
|
||||
// Whether to add a debug overlay or not
|
||||
AddDebugOverlay *float64 `queryParam:"style=form,explode=true,name=addDebugOverlay"`
|
||||
// Whether to auto adjust quality or not
|
||||
AutoAdjustQuality *float64 `queryParam:"style=form,explode=true,name=autoAdjustQuality"`
|
||||
}
|
||||
|
||||
func (o *StartUniversalTranscodeRequest) GetHasMDE() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.HasMDE
|
||||
}
|
||||
|
||||
func (o *StartUniversalTranscodeRequest) GetPath() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.Path
|
||||
}
|
||||
|
||||
func (o *StartUniversalTranscodeRequest) GetMediaIndex() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.MediaIndex
|
||||
}
|
||||
|
||||
func (o *StartUniversalTranscodeRequest) GetPartIndex() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.PartIndex
|
||||
}
|
||||
|
||||
func (o *StartUniversalTranscodeRequest) GetProtocol() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.Protocol
|
||||
}
|
||||
|
||||
func (o *StartUniversalTranscodeRequest) GetFastSeek() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.FastSeek
|
||||
}
|
||||
|
||||
func (o *StartUniversalTranscodeRequest) GetDirectPlay() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.DirectPlay
|
||||
}
|
||||
|
||||
func (o *StartUniversalTranscodeRequest) GetDirectStream() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.DirectStream
|
||||
}
|
||||
|
||||
func (o *StartUniversalTranscodeRequest) GetSubtitleSize() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.SubtitleSize
|
||||
}
|
||||
|
||||
func (o *StartUniversalTranscodeRequest) GetSubtites() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Subtites
|
||||
}
|
||||
|
||||
func (o *StartUniversalTranscodeRequest) GetAudioBoost() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AudioBoost
|
||||
}
|
||||
|
||||
func (o *StartUniversalTranscodeRequest) GetLocation() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Location
|
||||
}
|
||||
|
||||
func (o *StartUniversalTranscodeRequest) GetMediaBufferSize() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.MediaBufferSize
|
||||
}
|
||||
|
||||
func (o *StartUniversalTranscodeRequest) GetSession() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Session
|
||||
}
|
||||
|
||||
func (o *StartUniversalTranscodeRequest) GetAddDebugOverlay() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AddDebugOverlay
|
||||
}
|
||||
|
||||
func (o *StartUniversalTranscodeRequest) GetAutoAdjustQuality() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.AutoAdjustQuality
|
||||
}
|
||||
|
||||
type StartUniversalTranscodeErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *StartUniversalTranscodeErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *StartUniversalTranscodeErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *StartUniversalTranscodeErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// StartUniversalTranscodeResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type StartUniversalTranscodeResponseBody struct {
|
||||
Errors []StartUniversalTranscodeErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *StartUniversalTranscodeResponseBody) GetErrors() []StartUniversalTranscodeErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type StartUniversalTranscodeResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *StartUniversalTranscodeResponseBody
|
||||
}
|
||||
|
||||
func (o *StartUniversalTranscodeResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *StartUniversalTranscodeResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *StartUniversalTranscodeResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *StartUniversalTranscodeResponse) GetObject() *StartUniversalTranscodeResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
85
internal/sdk/models/operations/stopalltasks.go
Normal file
85
internal/sdk/models/operations/stopalltasks.go
Normal file
@@ -0,0 +1,85 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type StopAllTasksErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *StopAllTasksErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *StopAllTasksErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *StopAllTasksErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// StopAllTasksResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type StopAllTasksResponseBody struct {
|
||||
Errors []StopAllTasksErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *StopAllTasksResponseBody) GetErrors() []StopAllTasksErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type StopAllTasksResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *StopAllTasksResponseBody
|
||||
}
|
||||
|
||||
func (o *StopAllTasksResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *StopAllTasksResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *StopAllTasksResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *StopAllTasksResponse) GetObject() *StopAllTasksResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
163
internal/sdk/models/operations/stoptask.go
Normal file
163
internal/sdk/models/operations/stoptask.go
Normal file
@@ -0,0 +1,163 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// PathParamTaskName - The name of the task to be started.
|
||||
type PathParamTaskName string
|
||||
|
||||
const (
|
||||
PathParamTaskNameBackupDatabase PathParamTaskName = "BackupDatabase"
|
||||
PathParamTaskNameBuildGracenoteCollections PathParamTaskName = "BuildGracenoteCollections"
|
||||
PathParamTaskNameCheckForUpdates PathParamTaskName = "CheckForUpdates"
|
||||
PathParamTaskNameCleanOldBundles PathParamTaskName = "CleanOldBundles"
|
||||
PathParamTaskNameCleanOldCacheFiles PathParamTaskName = "CleanOldCacheFiles"
|
||||
PathParamTaskNameDeepMediaAnalysis PathParamTaskName = "DeepMediaAnalysis"
|
||||
PathParamTaskNameGenerateAutoTags PathParamTaskName = "GenerateAutoTags"
|
||||
PathParamTaskNameGenerateChapterThumbs PathParamTaskName = "GenerateChapterThumbs"
|
||||
PathParamTaskNameGenerateMediaIndexFiles PathParamTaskName = "GenerateMediaIndexFiles"
|
||||
PathParamTaskNameOptimizeDatabase PathParamTaskName = "OptimizeDatabase"
|
||||
PathParamTaskNameRefreshLibraries PathParamTaskName = "RefreshLibraries"
|
||||
PathParamTaskNameRefreshLocalMedia PathParamTaskName = "RefreshLocalMedia"
|
||||
PathParamTaskNameRefreshPeriodicMetadata PathParamTaskName = "RefreshPeriodicMetadata"
|
||||
PathParamTaskNameUpgradeMediaAnalysis PathParamTaskName = "UpgradeMediaAnalysis"
|
||||
)
|
||||
|
||||
func (e PathParamTaskName) ToPointer() *PathParamTaskName {
|
||||
return &e
|
||||
}
|
||||
|
||||
func (e *PathParamTaskName) UnmarshalJSON(data []byte) error {
|
||||
var v string
|
||||
if err := json.Unmarshal(data, &v); err != nil {
|
||||
return err
|
||||
}
|
||||
switch v {
|
||||
case "BackupDatabase":
|
||||
fallthrough
|
||||
case "BuildGracenoteCollections":
|
||||
fallthrough
|
||||
case "CheckForUpdates":
|
||||
fallthrough
|
||||
case "CleanOldBundles":
|
||||
fallthrough
|
||||
case "CleanOldCacheFiles":
|
||||
fallthrough
|
||||
case "DeepMediaAnalysis":
|
||||
fallthrough
|
||||
case "GenerateAutoTags":
|
||||
fallthrough
|
||||
case "GenerateChapterThumbs":
|
||||
fallthrough
|
||||
case "GenerateMediaIndexFiles":
|
||||
fallthrough
|
||||
case "OptimizeDatabase":
|
||||
fallthrough
|
||||
case "RefreshLibraries":
|
||||
fallthrough
|
||||
case "RefreshLocalMedia":
|
||||
fallthrough
|
||||
case "RefreshPeriodicMetadata":
|
||||
fallthrough
|
||||
case "UpgradeMediaAnalysis":
|
||||
*e = PathParamTaskName(v)
|
||||
return nil
|
||||
default:
|
||||
return fmt.Errorf("invalid value for PathParamTaskName: %v", v)
|
||||
}
|
||||
}
|
||||
|
||||
type StopTaskRequest struct {
|
||||
// The name of the task to be started.
|
||||
TaskName PathParamTaskName `pathParam:"style=simple,explode=false,name=taskName"`
|
||||
}
|
||||
|
||||
func (o *StopTaskRequest) GetTaskName() PathParamTaskName {
|
||||
if o == nil {
|
||||
return PathParamTaskName("")
|
||||
}
|
||||
return o.TaskName
|
||||
}
|
||||
|
||||
type StopTaskErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *StopTaskErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *StopTaskErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *StopTaskErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// StopTaskResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type StopTaskResponseBody struct {
|
||||
Errors []StopTaskErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *StopTaskResponseBody) GetErrors() []StopTaskErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type StopTaskResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *StopTaskResponseBody
|
||||
}
|
||||
|
||||
func (o *StopTaskResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *StopTaskResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *StopTaskResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *StopTaskResponse) GetObject() *StopTaskResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
97
internal/sdk/models/operations/stoptranscodesession.go
Normal file
97
internal/sdk/models/operations/stoptranscodesession.go
Normal file
@@ -0,0 +1,97 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type StopTranscodeSessionRequest struct {
|
||||
// the Key of the transcode session to stop
|
||||
SessionKey string `pathParam:"style=simple,explode=false,name=sessionKey"`
|
||||
}
|
||||
|
||||
func (o *StopTranscodeSessionRequest) GetSessionKey() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.SessionKey
|
||||
}
|
||||
|
||||
type StopTranscodeSessionErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *StopTranscodeSessionErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *StopTranscodeSessionErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *StopTranscodeSessionErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// StopTranscodeSessionResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type StopTranscodeSessionResponseBody struct {
|
||||
Errors []StopTranscodeSessionErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *StopTranscodeSessionResponseBody) GetErrors() []StopTranscodeSessionErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type StopTranscodeSessionResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *StopTranscodeSessionResponseBody
|
||||
}
|
||||
|
||||
func (o *StopTranscodeSessionResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *StopTranscodeSessionResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *StopTranscodeSessionResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *StopTranscodeSessionResponse) GetObject() *StopTranscodeSessionResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
115
internal/sdk/models/operations/updateplaylist.go
Normal file
115
internal/sdk/models/operations/updateplaylist.go
Normal file
@@ -0,0 +1,115 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type UpdatePlaylistRequest struct {
|
||||
// the ID of the playlist
|
||||
PlaylistID float64 `pathParam:"style=simple,explode=false,name=playlistID"`
|
||||
// name of the playlist
|
||||
Title *string `queryParam:"style=form,explode=true,name=title"`
|
||||
// summary description of the playlist
|
||||
Summary *string `queryParam:"style=form,explode=true,name=summary"`
|
||||
}
|
||||
|
||||
func (o *UpdatePlaylistRequest) GetPlaylistID() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.PlaylistID
|
||||
}
|
||||
|
||||
func (o *UpdatePlaylistRequest) GetTitle() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Title
|
||||
}
|
||||
|
||||
func (o *UpdatePlaylistRequest) GetSummary() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Summary
|
||||
}
|
||||
|
||||
type UpdatePlaylistErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *UpdatePlaylistErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *UpdatePlaylistErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *UpdatePlaylistErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// UpdatePlaylistResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type UpdatePlaylistResponseBody struct {
|
||||
Errors []UpdatePlaylistErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *UpdatePlaylistResponseBody) GetErrors() []UpdatePlaylistErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type UpdatePlaylistResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *UpdatePlaylistResponseBody
|
||||
}
|
||||
|
||||
func (o *UpdatePlaylistResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *UpdatePlaylistResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *UpdatePlaylistResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *UpdatePlaylistResponse) GetObject() *UpdatePlaylistResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
115
internal/sdk/models/operations/updateplayprogress.go
Normal file
115
internal/sdk/models/operations/updateplayprogress.go
Normal file
@@ -0,0 +1,115 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type UpdatePlayProgressRequest struct {
|
||||
// the media key
|
||||
Key string `queryParam:"style=form,explode=true,name=key"`
|
||||
// The time, in milliseconds, used to set the media playback progress.
|
||||
Time float64 `queryParam:"style=form,explode=true,name=time"`
|
||||
// The playback state of the media item.
|
||||
State string `queryParam:"style=form,explode=true,name=state"`
|
||||
}
|
||||
|
||||
func (o *UpdatePlayProgressRequest) GetKey() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.Key
|
||||
}
|
||||
|
||||
func (o *UpdatePlayProgressRequest) GetTime() float64 {
|
||||
if o == nil {
|
||||
return 0.0
|
||||
}
|
||||
return o.Time
|
||||
}
|
||||
|
||||
func (o *UpdatePlayProgressRequest) GetState() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.State
|
||||
}
|
||||
|
||||
type UpdatePlayProgressErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *UpdatePlayProgressErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *UpdatePlayProgressErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *UpdatePlayProgressErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// UpdatePlayProgressResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type UpdatePlayProgressResponseBody struct {
|
||||
Errors []UpdatePlayProgressErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *UpdatePlayProgressResponseBody) GetErrors() []UpdatePlayProgressErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type UpdatePlayProgressResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *UpdatePlayProgressResponseBody
|
||||
}
|
||||
|
||||
func (o *UpdatePlayProgressResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *UpdatePlayProgressResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *UpdatePlayProgressResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *UpdatePlayProgressResponse) GetObject() *UpdatePlayProgressResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
149
internal/sdk/models/operations/uploadplaylist.go
Normal file
149
internal/sdk/models/operations/uploadplaylist.go
Normal file
@@ -0,0 +1,149 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// Force overwriting of duplicate playlists.
|
||||
// By default, a playlist file uploaded with the same path will overwrite the existing playlist.
|
||||
// The `force` argument is used to disable overwriting.
|
||||
// If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.
|
||||
type Force int64
|
||||
|
||||
const (
|
||||
ForceZero Force = 0
|
||||
ForceOne Force = 1
|
||||
)
|
||||
|
||||
func (e Force) ToPointer() *Force {
|
||||
return &e
|
||||
}
|
||||
|
||||
func (e *Force) UnmarshalJSON(data []byte) error {
|
||||
var v int64
|
||||
if err := json.Unmarshal(data, &v); err != nil {
|
||||
return err
|
||||
}
|
||||
switch v {
|
||||
case 0:
|
||||
fallthrough
|
||||
case 1:
|
||||
*e = Force(v)
|
||||
return nil
|
||||
default:
|
||||
return fmt.Errorf("invalid value for Force: %v", v)
|
||||
}
|
||||
}
|
||||
|
||||
type UploadPlaylistRequest struct {
|
||||
// absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server.
|
||||
// If the `path` argument is a directory, that path will be scanned for playlist files to be processed.
|
||||
// Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it.
|
||||
// The GUID of each playlist is based on the filename.
|
||||
// If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it.
|
||||
// The GUID of each playlist is based on the filename.
|
||||
//
|
||||
Path string `queryParam:"style=form,explode=true,name=path"`
|
||||
// Force overwriting of duplicate playlists.
|
||||
// By default, a playlist file uploaded with the same path will overwrite the existing playlist.
|
||||
// The `force` argument is used to disable overwriting.
|
||||
// If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.
|
||||
//
|
||||
Force Force `queryParam:"style=form,explode=true,name=force"`
|
||||
}
|
||||
|
||||
func (o *UploadPlaylistRequest) GetPath() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.Path
|
||||
}
|
||||
|
||||
func (o *UploadPlaylistRequest) GetForce() Force {
|
||||
if o == nil {
|
||||
return Force(0)
|
||||
}
|
||||
return o.Force
|
||||
}
|
||||
|
||||
type UploadPlaylistErrors struct {
|
||||
Code *float64 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Status *float64 `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
func (o *UploadPlaylistErrors) GetCode() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Code
|
||||
}
|
||||
|
||||
func (o *UploadPlaylistErrors) GetMessage() *string {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Message
|
||||
}
|
||||
|
||||
func (o *UploadPlaylistErrors) GetStatus() *float64 {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Status
|
||||
}
|
||||
|
||||
// UploadPlaylistResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
type UploadPlaylistResponseBody struct {
|
||||
Errors []UploadPlaylistErrors `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
func (o *UploadPlaylistResponseBody) GetErrors() []UploadPlaylistErrors {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Errors
|
||||
}
|
||||
|
||||
type UploadPlaylistResponse 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
|
||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
Object *UploadPlaylistResponseBody
|
||||
}
|
||||
|
||||
func (o *UploadPlaylistResponse) GetContentType() string {
|
||||
if o == nil {
|
||||
return ""
|
||||
}
|
||||
return o.ContentType
|
||||
}
|
||||
|
||||
func (o *UploadPlaylistResponse) GetStatusCode() int {
|
||||
if o == nil {
|
||||
return 0
|
||||
}
|
||||
return o.StatusCode
|
||||
}
|
||||
|
||||
func (o *UploadPlaylistResponse) GetRawResponse() *http.Response {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.RawResponse
|
||||
}
|
||||
|
||||
func (o *UploadPlaylistResponse) GetObject() *UploadPlaylistResponseBody {
|
||||
if o == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Object
|
||||
}
|
||||
Reference in New Issue
Block a user