mirror of
https://github.com/LukeHagar/plexterraform.git
synced 2025-12-06 04:20:52 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.285.0
This commit is contained in:
@@ -1,17 +1,18 @@
|
|||||||
lockVersion: 2.0.0
|
lockVersion: 2.0.0
|
||||||
id: e742591b-391d-4f4e-8484-d01a093b32ec
|
id: e742591b-391d-4f4e-8484-d01a093b32ec
|
||||||
management:
|
management:
|
||||||
docChecksum: 7a43cd3413d535205cfaee20a4b6a250
|
docChecksum: 543cb95355401d2e3c2ba11a50d9dd94
|
||||||
docVersion: 0.0.3
|
docVersion: 0.0.3
|
||||||
speakeasyVersion: 1.283.1
|
speakeasyVersion: 1.285.0
|
||||||
generationVersion: 2.324.0
|
generationVersion: 2.326.3
|
||||||
releaseVersion: 0.13.0
|
releaseVersion: 0.14.0
|
||||||
configChecksum: e1275e5207cd1ca50f47a4d999c315cd
|
configChecksum: 2c6e8190ee0aa4e41bd653129a33e169
|
||||||
repoURL: https://github.com/LukeHagar/plexterraform.git
|
repoURL: https://github.com/LukeHagar/plexterraform.git
|
||||||
repoSubDirectory: .
|
repoSubDirectory: .
|
||||||
published: true
|
published: true
|
||||||
features:
|
features:
|
||||||
terraform:
|
terraform:
|
||||||
|
additionalDependencies: 0.1.0
|
||||||
constsAndDefaults: 0.1.4
|
constsAndDefaults: 0.1.4
|
||||||
core: 3.20.0
|
core: 3.20.0
|
||||||
globalSecurity: 2.81.6
|
globalSecurity: 2.81.6
|
||||||
@@ -19,6 +20,7 @@ features:
|
|||||||
globals: 2.82.1
|
globals: 2.82.1
|
||||||
methodServerURLs: 2.82.1
|
methodServerURLs: 2.82.1
|
||||||
nameOverrides: 2.81.2
|
nameOverrides: 2.81.2
|
||||||
|
unions: 2.81.12
|
||||||
generatedFiles:
|
generatedFiles:
|
||||||
- internal/sdk/server.go
|
- internal/sdk/server.go
|
||||||
- internal/sdk/media.go
|
- internal/sdk/media.go
|
||||||
@@ -83,7 +85,6 @@ generatedFiles:
|
|||||||
- internal/sdk/models/operations/getlibraries.go
|
- internal/sdk/models/operations/getlibraries.go
|
||||||
- internal/sdk/models/operations/getlibrary.go
|
- internal/sdk/models/operations/getlibrary.go
|
||||||
- internal/sdk/models/operations/deletelibrary.go
|
- internal/sdk/models/operations/deletelibrary.go
|
||||||
- internal/sdk/models/operations/getlibraryitems.go
|
|
||||||
- internal/sdk/models/operations/refreshlibrary.go
|
- internal/sdk/models/operations/refreshlibrary.go
|
||||||
- internal/sdk/models/operations/searchlibrary.go
|
- internal/sdk/models/operations/searchlibrary.go
|
||||||
- internal/sdk/models/operations/getmetadata.go
|
- internal/sdk/models/operations/getmetadata.go
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ generation:
|
|||||||
auth:
|
auth:
|
||||||
oAuth2ClientCredentialsEnabled: false
|
oAuth2ClientCredentialsEnabled: false
|
||||||
terraform:
|
terraform:
|
||||||
version: 0.13.0
|
version: 0.14.0
|
||||||
additionalDependencies: {}
|
additionalDependencies: {}
|
||||||
author: LukeHagar
|
author: LukeHagar
|
||||||
environmentVariables: []
|
environmentVariables: []
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
speakeasyVersion: 1.283.1
|
speakeasyVersion: 1.285.0
|
||||||
sources:
|
sources:
|
||||||
my-source: {}
|
my-source: {}
|
||||||
targets:
|
targets:
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
PlexAPI = {
|
PlexAPI = {
|
||||||
source = "LukeHagar/PlexAPI"
|
source = "LukeHagar/PlexAPI"
|
||||||
version = "0.13.0"
|
version = "0.14.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
12
RELEASES.md
12
RELEASES.md
@@ -252,4 +252,14 @@ Based on:
|
|||||||
### Generated
|
### Generated
|
||||||
- [terraform v0.13.0] .
|
- [terraform v0.13.0] .
|
||||||
### Releases
|
### Releases
|
||||||
- [Terraform v0.13.0] https://registry.terraform.io/providers/LukeHagar/PlexAPI/0.13.0 - .
|
- [Terraform v0.13.0] https://registry.terraform.io/providers/LukeHagar/PlexAPI/0.13.0 - .
|
||||||
|
|
||||||
|
## 2024-05-08 18:15:02
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.285.0 (2.326.3) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [terraform v0.14.0] .
|
||||||
|
### Releases
|
||||||
|
- [Terraform v0.14.0] https://registry.terraform.io/providers/LukeHagar/PlexAPI/0.14.0 - .
|
||||||
@@ -17,7 +17,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
PlexAPI = {
|
PlexAPI = {
|
||||||
source = "LukeHagar/PlexAPI"
|
source = "LukeHagar/PlexAPI"
|
||||||
version = "0.13.0"
|
version = "0.14.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
PlexAPI = {
|
PlexAPI = {
|
||||||
source = "LukeHagar/PlexAPI"
|
source = "LukeHagar/PlexAPI"
|
||||||
version = "0.13.0"
|
version = "0.14.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -567,114 +567,6 @@ func (s *Library) DeleteLibrary(ctx context.Context, request operations.DeleteLi
|
|||||||
return res, nil
|
return res, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetLibraryItems - Get Library Items
|
|
||||||
// Fetches details from a specific section of the library identified by a section key and a tag. The tag parameter accepts the following values:
|
|
||||||
// - `all`: All items in the section.
|
|
||||||
// - `unwatched`: Items that have not been played.
|
|
||||||
// - `newest`: Items that are recently released.
|
|
||||||
// - `recentlyAdded`: Items that are recently added to the library.
|
|
||||||
// - `recentlyViewed`: Items that were recently viewed.
|
|
||||||
// - `onDeck`: Items to continue watching.
|
|
||||||
// - `collection`: Items categorized by collection.
|
|
||||||
// - `edition`: Items categorized by edition.
|
|
||||||
// - `genre`: Items categorized by genre.
|
|
||||||
// - `year`: Items categorized by year of release.
|
|
||||||
// - `decade`: Items categorized by decade.
|
|
||||||
// - `director`: Items categorized by director.
|
|
||||||
// - `actor`: Items categorized by starring actor.
|
|
||||||
// - `country`: Items categorized by country of origin.
|
|
||||||
// - `contentRating`: Items categorized by content rating.
|
|
||||||
// - `rating`: Items categorized by rating.
|
|
||||||
// - `resolution`: Items categorized by resolution.
|
|
||||||
// - `firstCharacter`: Items categorized by the first letter.
|
|
||||||
// - `folder`: Items categorized by folder.
|
|
||||||
func (s *Library) GetLibraryItems(ctx context.Context, request operations.GetLibraryItemsRequest) (*operations.GetLibraryItemsResponse, error) {
|
|
||||||
hookCtx := hooks.HookContext{
|
|
||||||
Context: ctx,
|
|
||||||
OperationID: "getLibraryItems",
|
|
||||||
OAuth2Scopes: []string{},
|
|
||||||
SecuritySource: s.sdkConfiguration.Security,
|
|
||||||
}
|
|
||||||
|
|
||||||
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
|
|
||||||
opURL, err := utils.GenerateURL(ctx, baseURL, "/library/sections/{sectionId}/{tag}", request, nil)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("error generating URL: %w", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("error creating request: %w", err)
|
|
||||||
}
|
|
||||||
req.Header.Set("Accept", "application/json")
|
|
||||||
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
|
|
||||||
|
|
||||||
if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
req, err = s.sdkConfiguration.Hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
httpRes, err := s.sdkConfiguration.Client.Do(req)
|
|
||||||
if err != nil || httpRes == nil {
|
|
||||||
if err != nil {
|
|
||||||
err = fmt.Errorf("error sending request: %w", err)
|
|
||||||
} else {
|
|
||||||
err = fmt.Errorf("error sending request: no response")
|
|
||||||
}
|
|
||||||
|
|
||||||
_, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err)
|
|
||||||
return nil, err
|
|
||||||
} else if utils.MatchStatusCodes([]string{}, httpRes.StatusCode) {
|
|
||||||
_httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
} else if _httpRes != nil {
|
|
||||||
httpRes = _httpRes
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
httpRes, err = s.sdkConfiguration.Hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
res := &operations.GetLibraryItemsResponse{
|
|
||||||
StatusCode: httpRes.StatusCode,
|
|
||||||
ContentType: httpRes.Header.Get("Content-Type"),
|
|
||||||
RawResponse: httpRes,
|
|
||||||
}
|
|
||||||
|
|
||||||
rawBody, err := io.ReadAll(httpRes.Body)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("error reading response body: %w", err)
|
|
||||||
}
|
|
||||||
httpRes.Body.Close()
|
|
||||||
httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody))
|
|
||||||
|
|
||||||
switch {
|
|
||||||
case httpRes.StatusCode == 200:
|
|
||||||
switch {
|
|
||||||
case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`):
|
|
||||||
var out operations.GetLibraryItemsResponseBody
|
|
||||||
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
res.Object = &out
|
|
||||||
default:
|
|
||||||
return nil, errors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
|
|
||||||
}
|
|
||||||
default:
|
|
||||||
return nil, errors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes)
|
|
||||||
}
|
|
||||||
|
|
||||||
return res, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// RefreshLibrary - Refresh Library
|
// RefreshLibrary - Refresh Library
|
||||||
// This endpoint Refreshes the library.
|
// This endpoint Refreshes the library.
|
||||||
func (s *Library) RefreshLibrary(ctx context.Context, request operations.RefreshLibraryRequest) (*operations.RefreshLibraryResponse, error) {
|
func (s *Library) RefreshLibrary(ctx context.Context, request operations.RefreshLibraryRequest) (*operations.RefreshLibraryResponse, error) {
|
||||||
|
|||||||
@@ -1,992 +0,0 @@
|
|||||||
// 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
|
|
||||||
}
|
|
||||||
@@ -276,8 +276,8 @@ func New(opts ...SDKOption) *PlexAPI {
|
|||||||
Language: "go",
|
Language: "go",
|
||||||
OpenAPIDocVersion: "0.0.3",
|
OpenAPIDocVersion: "0.0.3",
|
||||||
SDKVersion: "0.0.1",
|
SDKVersion: "0.0.1",
|
||||||
GenVersion: "2.324.0",
|
GenVersion: "2.326.3",
|
||||||
UserAgent: "speakeasy-sdk/go 0.0.1 2.324.0 0.0.3 github.com/LukeHagar/terraform-provider-PlexAPI/internal/sdk",
|
UserAgent: "speakeasy-sdk/go 0.0.1 2.326.3 0.0.3 github.com/LukeHagar/terraform-provider-PlexAPI/internal/sdk",
|
||||||
Globals: globals.Globals{},
|
Globals: globals.Globals{},
|
||||||
ServerDefaults: []map[string]string{
|
ServerDefaults: []map[string]string{
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user