mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-06 20:47:48 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
673a771f04 | ||
|
|
216a94fe7d |
@@ -1,12 +1,12 @@
|
|||||||
lockVersion: 2.0.0
|
lockVersion: 2.0.0
|
||||||
id: dfa99515-01c0-42eb-9be5-ee212fd03eb3
|
id: dfa99515-01c0-42eb-9be5-ee212fd03eb3
|
||||||
management:
|
management:
|
||||||
docChecksum: fa4c9c5c23680ad02fdbe831ad9d2403
|
docChecksum: 89dadbc8c2d01913eaf905dadd40f814
|
||||||
docVersion: 0.0.3
|
docVersion: 0.0.3
|
||||||
speakeasyVersion: 1.531.4
|
speakeasyVersion: 1.535.1
|
||||||
generationVersion: 2.570.4
|
generationVersion: 2.585.2
|
||||||
releaseVersion: 0.20.2
|
releaseVersion: 0.21.0
|
||||||
configChecksum: da09b9fb064187056564b4426f7aa2d0
|
configChecksum: 71b1c5b2bb25150bc46d8b32018997bc
|
||||||
repoURL: https://github.com/LukeHagar/plexgo.git
|
repoURL: https://github.com/LukeHagar/plexgo.git
|
||||||
repoSubDirectory: .
|
repoSubDirectory: .
|
||||||
installationURL: https://github.com/LukeHagar/plexgo
|
installationURL: https://github.com/LukeHagar/plexgo
|
||||||
@@ -31,6 +31,7 @@ features:
|
|||||||
methodServerURLs: 2.82.1
|
methodServerURLs: 2.82.1
|
||||||
nameOverrides: 2.81.2
|
nameOverrides: 2.81.2
|
||||||
nullables: 0.1.1
|
nullables: 0.1.1
|
||||||
|
openEnums: 0.1.0
|
||||||
responseFormat: 0.1.2
|
responseFormat: 0.1.2
|
||||||
retries: 2.83.2
|
retries: 2.83.2
|
||||||
sdkHooks: 0.1.0
|
sdkHooks: 0.1.0
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ generation:
|
|||||||
oAuth2ClientCredentialsEnabled: true
|
oAuth2ClientCredentialsEnabled: true
|
||||||
oAuth2PasswordEnabled: false
|
oAuth2PasswordEnabled: false
|
||||||
go:
|
go:
|
||||||
version: 0.20.2
|
version: 0.21.0
|
||||||
additionalDependencies: {}
|
additionalDependencies: {}
|
||||||
allowUnknownFieldsInWeakUnions: false
|
allowUnknownFieldsInWeakUnions: false
|
||||||
clientServerStatusCodesAsErrors: true
|
clientServerStatusCodesAsErrors: true
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
speakeasyVersion: 1.531.4
|
speakeasyVersion: 1.535.1
|
||||||
sources:
|
sources:
|
||||||
my-source:
|
my-source:
|
||||||
sourceNamespace: my-source
|
sourceNamespace: my-source
|
||||||
@@ -9,19 +9,19 @@ sources:
|
|||||||
- main
|
- main
|
||||||
plexapi:
|
plexapi:
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:db75a06885b897418dcb580679b5f744348573ad317155172346d32442420e5e
|
sourceRevisionDigest: sha256:b2f9599237ceb13cf8f9c1693e38b290177b65fb389cebf0c3c60b8ef4778615
|
||||||
sourceBlobDigest: sha256:ac0a3c3a6df002378b3522325c2330ba4309fbbbfa503a04b8267398f20033f5
|
sourceBlobDigest: sha256:f8df9ef88ada992cd981d601e6c0b45cc82db76aba3d915c2f9d08f90c81ced9
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- speakeasy-sdk-regen-1744675819
|
- speakeasy-sdk-regen-1745082762
|
||||||
targets:
|
targets:
|
||||||
plexgo:
|
plexgo:
|
||||||
source: plexapi
|
source: plexapi
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:db75a06885b897418dcb580679b5f744348573ad317155172346d32442420e5e
|
sourceRevisionDigest: sha256:b2f9599237ceb13cf8f9c1693e38b290177b65fb389cebf0c3c60b8ef4778615
|
||||||
sourceBlobDigest: sha256:ac0a3c3a6df002378b3522325c2330ba4309fbbbfa503a04b8267398f20033f5
|
sourceBlobDigest: sha256:f8df9ef88ada992cd981d601e6c0b45cc82db76aba3d915c2f9d08f90c81ced9
|
||||||
codeSamplesNamespace: code-samples-go-plexgo
|
codeSamplesNamespace: code-samples-go-plexgo
|
||||||
codeSamplesRevisionDigest: sha256:36a583178379fbac0c0950fc49c672f2a422d773e8d969201d20c5c1e2215687
|
codeSamplesRevisionDigest: sha256:2d25718f4996da172444f082138e8a821c79218d583115151e7d1ebe953e7def
|
||||||
workflow:
|
workflow:
|
||||||
workflowVersion: 1.0.0
|
workflowVersion: 1.0.0
|
||||||
speakeasyVersion: latest
|
speakeasyVersion: latest
|
||||||
|
|||||||
20
RELEASES.md
20
RELEASES.md
@@ -1113,3 +1113,23 @@ Based on:
|
|||||||
- [go v0.20.2] .
|
- [go v0.20.2] .
|
||||||
### Releases
|
### Releases
|
||||||
- [Go v0.20.2] https://github.com/LukeHagar/plexgo/releases/tag/v0.20.2 - .
|
- [Go v0.20.2] https://github.com/LukeHagar/plexgo/releases/tag/v0.20.2 - .
|
||||||
|
|
||||||
|
## 2025-04-18 22:59:48
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.535.1 (2.585.2) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [go v0.20.3] .
|
||||||
|
### Releases
|
||||||
|
- [Go v0.20.3] https://github.com/LukeHagar/plexgo/releases/tag/v0.20.3 - .
|
||||||
|
|
||||||
|
## 2025-04-19 17:12:25
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.535.1 (2.585.2) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [go v0.21.0] .
|
||||||
|
### Releases
|
||||||
|
- [Go v0.21.0] https://github.com/LukeHagar/plexgo/releases/tag/v0.21.0 - .
|
||||||
@@ -4,6 +4,6 @@
|
|||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `IncludeDetails` | [*operations.IncludeDetails](../../models/operations/includedetails.md) | :heavy_minus_sign: | Whether or not to include details for a section (types, filters, and sorts).<br/>Only exists for backwards compatibility, media providers other than the server libraries have it on always.<br/> | |
|
| `IncludeDetails` | [*operations.IncludeDetails](../../models/operations/includedetails.md) | :heavy_minus_sign: | Whether or not to include details for a section (types, filters, and sorts).<br/>Only exists for backwards compatibility, media providers other than the server libraries have it on always.<br/> | |
|
||||||
| `SectionKey` | *int* | :heavy_check_mark: | The unique key of the Plex library. <br/>Note: This is unique in the context of the Plex server.<br/> | 9518 |
|
| `SectionKey` | *int* | :heavy_check_mark: | The unique key of the Plex library. <br/>Note: This is unique in the context of the Plex server.<br/> | 9518 |
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
|
| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
|
||||||
| `Level` | [operations.Level](../../models/operations/level.md) | :heavy_check_mark: | An integer log level to write to the PMS log with.<br/>0: Error<br/>1: Warning<br/>2: Info<br/>3: Debug<br/>4: Verbose<br/> | |
|
| `Level` | [operations.Level](../../models/operations/level.md) | :heavy_check_mark: | An integer log level to write to the PMS log with.<br/>0: Error<br/>1: Warning<br/>2: Info<br/>3: Debug<br/>4: Verbose<br/> | |
|
||||||
| `Message` | *string* | :heavy_check_mark: | The text of the message to write to the log. | Test log message |
|
| `Message` | *string* | :heavy_check_mark: | The text of the message to write to the log. | Test log message |
|
||||||
| `Source` | *string* | :heavy_check_mark: | a string indicating the source of the message. | Postman |
|
| `Source` | *string* | :heavy_check_mark: | a string indicating the source of the message. | Postman |
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `Path` | *string* | :heavy_check_mark: | absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server.<br/>If the `path` argument is a directory, that path will be scanned for playlist files to be processed.<br/>Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it.<br/>The GUID of each playlist is based on the filename.<br/>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.<br/>The GUID of each playlist is based on the filename.<br/> | /home/barkley/playlist.m3u |
|
| `Path` | *string* | :heavy_check_mark: | absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server.<br/>If the `path` argument is a directory, that path will be scanned for playlist files to be processed.<br/>Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it.<br/>The GUID of each playlist is based on the filename.<br/>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.<br/>The GUID of each playlist is based on the filename.<br/> | /home/barkley/playlist.m3u |
|
||||||
| `Force` | [operations.QueryParamForce](../../models/operations/queryparamforce.md) | :heavy_check_mark: | Force overwriting of duplicate playlists.<br/>By default, a playlist file uploaded with the same path will overwrite the existing playlist.<br/>The `force` argument is used to disable overwriting.<br/>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.<br/> | |
|
| `Force` | [operations.QueryParamForce](../../models/operations/queryparamforce.md) | :heavy_check_mark: | Force overwriting of duplicate playlists.<br/>By default, a playlist file uploaded with the same path will overwrite the existing playlist.<br/>The `force` argument is used to disable overwriting.<br/>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.<br/> | |
|
||||||
| `SectionID` | *int64* | :heavy_check_mark: | Possibly the section ID to upload the playlist to, we are not certain. | 1 |
|
| `SectionID` | *int64* | :heavy_check_mark: | Possibly the section ID to upload the playlist to, we are not certain. | 1 |
|
||||||
@@ -285,7 +285,7 @@ func main() {
|
|||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
| Parameter | Type | Required | Description | Example |
|
| Parameter | Type | Required | Description | Example |
|
||||||
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | |
|
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | |
|
||||||
| `sectionKey` | *int* | :heavy_check_mark: | The unique key of the Plex library. <br/>Note: This is unique in the context of the Plex server.<br/> | 9518 |
|
| `sectionKey` | *int* | :heavy_check_mark: | The unique key of the Plex library. <br/>Note: This is unique in the context of the Plex server.<br/> | 9518 |
|
||||||
| `includeDetails` | [*operations.IncludeDetails](../../models/operations/includedetails.md) | :heavy_minus_sign: | Whether or not to include details for a section (types, filters, and sorts).<br/>Only exists for backwards compatibility, media providers other than the server libraries have it on always.<br/> | |
|
| `includeDetails` | [*operations.IncludeDetails](../../models/operations/includedetails.md) | :heavy_minus_sign: | Whether or not to include details for a section (types, filters, and sorts).<br/>Only exists for backwards compatibility, media providers other than the server libraries have it on always.<br/> | |
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ func main() {
|
|||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
| Parameter | Type | Required | Description | Example |
|
| Parameter | Type | Required | Description | Example |
|
||||||
| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
|
| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
|
||||||
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | |
|
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | |
|
||||||
| `level` | [operations.Level](../../models/operations/level.md) | :heavy_check_mark: | An integer log level to write to the PMS log with.<br/>0: Error<br/>1: Warning<br/>2: Info<br/>3: Debug<br/>4: Verbose<br/> | |
|
| `level` | [operations.Level](../../models/operations/level.md) | :heavy_check_mark: | An integer log level to write to the PMS log with.<br/>0: Error<br/>1: Warning<br/>2: Info<br/>3: Debug<br/>4: Verbose<br/> | |
|
||||||
| `message` | *string* | :heavy_check_mark: | The text of the message to write to the log. | Test log message |
|
| `message` | *string* | :heavy_check_mark: | The text of the message to write to the log. | Test log message |
|
||||||
|
|||||||
@@ -501,7 +501,7 @@ func main() {
|
|||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
| Parameter | Type | Required | Description | Example |
|
| Parameter | Type | Required | Description | Example |
|
||||||
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | |
|
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | |
|
||||||
| `path` | *string* | :heavy_check_mark: | absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server.<br/>If the `path` argument is a directory, that path will be scanned for playlist files to be processed.<br/>Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it.<br/>The GUID of each playlist is based on the filename.<br/>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.<br/>The GUID of each playlist is based on the filename.<br/> | /home/barkley/playlist.m3u |
|
| `path` | *string* | :heavy_check_mark: | absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server.<br/>If the `path` argument is a directory, that path will be scanned for playlist files to be processed.<br/>Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it.<br/>The GUID of each playlist is based on the filename.<br/>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.<br/>The GUID of each playlist is based on the filename.<br/> | /home/barkley/playlist.m3u |
|
||||||
| `force` | [operations.QueryParamForce](../../models/operations/queryparamforce.md) | :heavy_check_mark: | Force overwriting of duplicate playlists.<br/>By default, a playlist file uploaded with the same path will overwrite the existing playlist.<br/>The `force` argument is used to disable overwriting.<br/>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.<br/> | |
|
| `force` | [operations.QueryParamForce](../../models/operations/queryparamforce.md) | :heavy_check_mark: | Force overwriting of duplicate playlists.<br/>By default, a playlist file uploaded with the same path will overwrite the existing playlist.<br/>The `force` argument is used to disable overwriting.<br/>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.<br/> | |
|
||||||
|
|||||||
@@ -20,23 +20,6 @@ const (
|
|||||||
func (e CreatePlaylistQueryParamType) ToPointer() *CreatePlaylistQueryParamType {
|
func (e CreatePlaylistQueryParamType) ToPointer() *CreatePlaylistQueryParamType {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *CreatePlaylistQueryParamType) 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 = CreatePlaylistQueryParamType(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for CreatePlaylistQueryParamType: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Smart - whether the playlist is smart or not
|
// Smart - whether the playlist is smart or not
|
||||||
type Smart int64
|
type Smart int64
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
package operations
|
package operations
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
|
||||||
"fmt"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -29,31 +27,6 @@ const (
|
|||||||
func (e GetActorsLibraryQueryParamType) ToPointer() *GetActorsLibraryQueryParamType {
|
func (e GetActorsLibraryQueryParamType) ToPointer() *GetActorsLibraryQueryParamType {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *GetActorsLibraryQueryParamType) 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:
|
|
||||||
fallthrough
|
|
||||||
case 8:
|
|
||||||
fallthrough
|
|
||||||
case 9:
|
|
||||||
fallthrough
|
|
||||||
case 10:
|
|
||||||
*e = GetActorsLibraryQueryParamType(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for GetActorsLibraryQueryParamType: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetActorsLibraryRequest struct {
|
type GetActorsLibraryRequest struct {
|
||||||
// The unique key of the Plex library.
|
// The unique key of the Plex library.
|
||||||
|
|||||||
@@ -24,29 +24,6 @@ const (
|
|||||||
func (e GetAllLibrariesType) ToPointer() *GetAllLibrariesType {
|
func (e GetAllLibrariesType) ToPointer() *GetAllLibrariesType {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *GetAllLibrariesType) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "movie":
|
|
||||||
fallthrough
|
|
||||||
case "show":
|
|
||||||
fallthrough
|
|
||||||
case "season":
|
|
||||||
fallthrough
|
|
||||||
case "episode":
|
|
||||||
fallthrough
|
|
||||||
case "artist":
|
|
||||||
fallthrough
|
|
||||||
case "album":
|
|
||||||
*e = GetAllLibrariesType(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for GetAllLibrariesType: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Hidden - UNKNOWN
|
// Hidden - UNKNOWN
|
||||||
type Hidden int
|
type Hidden int
|
||||||
|
|||||||
@@ -32,31 +32,6 @@ const (
|
|||||||
func (e GetAllMediaLibraryQueryParamType) ToPointer() *GetAllMediaLibraryQueryParamType {
|
func (e GetAllMediaLibraryQueryParamType) ToPointer() *GetAllMediaLibraryQueryParamType {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *GetAllMediaLibraryQueryParamType) 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:
|
|
||||||
fallthrough
|
|
||||||
case 8:
|
|
||||||
fallthrough
|
|
||||||
case 9:
|
|
||||||
fallthrough
|
|
||||||
case 10:
|
|
||||||
*e = GetAllMediaLibraryQueryParamType(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for GetAllMediaLibraryQueryParamType: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetAllMediaLibraryQueryParamIncludeMeta - Adds the Meta object to the response
|
// GetAllMediaLibraryQueryParamIncludeMeta - Adds the Meta object to the response
|
||||||
type GetAllMediaLibraryQueryParamIncludeMeta int
|
type GetAllMediaLibraryQueryParamIncludeMeta int
|
||||||
@@ -660,29 +635,6 @@ const (
|
|||||||
func (e GetAllMediaLibraryLibraryType) ToPointer() *GetAllMediaLibraryLibraryType {
|
func (e GetAllMediaLibraryLibraryType) ToPointer() *GetAllMediaLibraryLibraryType {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *GetAllMediaLibraryLibraryType) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "movie":
|
|
||||||
fallthrough
|
|
||||||
case "show":
|
|
||||||
fallthrough
|
|
||||||
case "season":
|
|
||||||
fallthrough
|
|
||||||
case "episode":
|
|
||||||
fallthrough
|
|
||||||
case "artist":
|
|
||||||
fallthrough
|
|
||||||
case "album":
|
|
||||||
*e = GetAllMediaLibraryLibraryType(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for GetAllMediaLibraryLibraryType: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetAllMediaLibraryLibraryResponseType string
|
type GetAllMediaLibraryLibraryResponseType string
|
||||||
|
|
||||||
@@ -696,25 +648,6 @@ const (
|
|||||||
func (e GetAllMediaLibraryLibraryResponseType) ToPointer() *GetAllMediaLibraryLibraryResponseType {
|
func (e GetAllMediaLibraryLibraryResponseType) ToPointer() *GetAllMediaLibraryLibraryResponseType {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *GetAllMediaLibraryLibraryResponseType) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "coverPoster":
|
|
||||||
fallthrough
|
|
||||||
case "background":
|
|
||||||
fallthrough
|
|
||||||
case "snapshot":
|
|
||||||
fallthrough
|
|
||||||
case "clearLogo":
|
|
||||||
*e = GetAllMediaLibraryLibraryResponseType(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for GetAllMediaLibraryLibraryResponseType: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetAllMediaLibraryImage struct {
|
type GetAllMediaLibraryImage struct {
|
||||||
Alt string `json:"alt"`
|
Alt string `json:"alt"`
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
package operations
|
package operations
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
|
||||||
"fmt"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -29,31 +27,6 @@ const (
|
|||||||
func (e GetCountriesLibraryQueryParamType) ToPointer() *GetCountriesLibraryQueryParamType {
|
func (e GetCountriesLibraryQueryParamType) ToPointer() *GetCountriesLibraryQueryParamType {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *GetCountriesLibraryQueryParamType) 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:
|
|
||||||
fallthrough
|
|
||||||
case 8:
|
|
||||||
fallthrough
|
|
||||||
case 9:
|
|
||||||
fallthrough
|
|
||||||
case 10:
|
|
||||||
*e = GetCountriesLibraryQueryParamType(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for GetCountriesLibraryQueryParamType: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetCountriesLibraryRequest struct {
|
type GetCountriesLibraryRequest struct {
|
||||||
// The unique key of the Plex library.
|
// The unique key of the Plex library.
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
package operations
|
package operations
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
|
||||||
"fmt"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -29,31 +27,6 @@ const (
|
|||||||
func (e GetGenresLibraryQueryParamType) ToPointer() *GetGenresLibraryQueryParamType {
|
func (e GetGenresLibraryQueryParamType) ToPointer() *GetGenresLibraryQueryParamType {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *GetGenresLibraryQueryParamType) 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:
|
|
||||||
fallthrough
|
|
||||||
case 8:
|
|
||||||
fallthrough
|
|
||||||
case 9:
|
|
||||||
fallthrough
|
|
||||||
case 10:
|
|
||||||
*e = GetGenresLibraryQueryParamType(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for GetGenresLibraryQueryParamType: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetGenresLibraryRequest struct {
|
type GetGenresLibraryRequest struct {
|
||||||
// The unique key of the Plex library.
|
// The unique key of the Plex library.
|
||||||
|
|||||||
@@ -35,49 +35,6 @@ const (
|
|||||||
func (e Tag) ToPointer() *Tag {
|
func (e Tag) ToPointer() *Tag {
|
||||||
return &e
|
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 "unwatched":
|
|
||||||
fallthrough
|
|
||||||
case "newest":
|
|
||||||
fallthrough
|
|
||||||
case "recentlyAdded":
|
|
||||||
fallthrough
|
|
||||||
case "recentlyViewed":
|
|
||||||
fallthrough
|
|
||||||
case "onDeck":
|
|
||||||
fallthrough
|
|
||||||
case "collection":
|
|
||||||
fallthrough
|
|
||||||
case "edition":
|
|
||||||
fallthrough
|
|
||||||
case "year":
|
|
||||||
fallthrough
|
|
||||||
case "decade":
|
|
||||||
fallthrough
|
|
||||||
case "director":
|
|
||||||
fallthrough
|
|
||||||
case "contentRating":
|
|
||||||
fallthrough
|
|
||||||
case "rating":
|
|
||||||
fallthrough
|
|
||||||
case "resolution":
|
|
||||||
fallthrough
|
|
||||||
case "firstCharacter":
|
|
||||||
fallthrough
|
|
||||||
case "folder":
|
|
||||||
fallthrough
|
|
||||||
case "albums":
|
|
||||||
*e = Tag(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for Tag: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// IncludeGuids - Adds the Guids object to the response
|
// IncludeGuids - Adds the Guids object to the response
|
||||||
type IncludeGuids int
|
type IncludeGuids int
|
||||||
@@ -127,31 +84,6 @@ const (
|
|||||||
func (e GetLibraryItemsQueryParamType) ToPointer() *GetLibraryItemsQueryParamType {
|
func (e GetLibraryItemsQueryParamType) ToPointer() *GetLibraryItemsQueryParamType {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *GetLibraryItemsQueryParamType) 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:
|
|
||||||
fallthrough
|
|
||||||
case 8:
|
|
||||||
fallthrough
|
|
||||||
case 9:
|
|
||||||
fallthrough
|
|
||||||
case 10:
|
|
||||||
*e = GetLibraryItemsQueryParamType(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for GetLibraryItemsQueryParamType: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetLibraryItemsQueryParamIncludeMeta - Adds the Meta object to the response
|
// GetLibraryItemsQueryParamIncludeMeta - Adds the Meta object to the response
|
||||||
type GetLibraryItemsQueryParamIncludeMeta int
|
type GetLibraryItemsQueryParamIncludeMeta int
|
||||||
@@ -615,29 +547,6 @@ const (
|
|||||||
func (e GetLibraryItemsLibraryType) ToPointer() *GetLibraryItemsLibraryType {
|
func (e GetLibraryItemsLibraryType) ToPointer() *GetLibraryItemsLibraryType {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *GetLibraryItemsLibraryType) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "movie":
|
|
||||||
fallthrough
|
|
||||||
case "show":
|
|
||||||
fallthrough
|
|
||||||
case "season":
|
|
||||||
fallthrough
|
|
||||||
case "episode":
|
|
||||||
fallthrough
|
|
||||||
case "artist":
|
|
||||||
fallthrough
|
|
||||||
case "album":
|
|
||||||
*e = GetLibraryItemsLibraryType(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for GetLibraryItemsLibraryType: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// FlattenSeasons - Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
// FlattenSeasons - Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
type FlattenSeasons string
|
type FlattenSeasons string
|
||||||
@@ -651,23 +560,6 @@ const (
|
|||||||
func (e FlattenSeasons) ToPointer() *FlattenSeasons {
|
func (e FlattenSeasons) ToPointer() *FlattenSeasons {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *FlattenSeasons) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "-1":
|
|
||||||
fallthrough
|
|
||||||
case "0":
|
|
||||||
fallthrough
|
|
||||||
case "1":
|
|
||||||
*e = FlattenSeasons(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for FlattenSeasons: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// EpisodeSort - Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
// EpisodeSort - Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
type EpisodeSort string
|
type EpisodeSort string
|
||||||
@@ -681,23 +573,6 @@ const (
|
|||||||
func (e EpisodeSort) ToPointer() *EpisodeSort {
|
func (e EpisodeSort) ToPointer() *EpisodeSort {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *EpisodeSort) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "-1":
|
|
||||||
fallthrough
|
|
||||||
case "0":
|
|
||||||
fallthrough
|
|
||||||
case "1":
|
|
||||||
*e = EpisodeSort(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for EpisodeSort: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// EnableCreditsMarkerGeneration - Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
// EnableCreditsMarkerGeneration - Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
type EnableCreditsMarkerGeneration string
|
type EnableCreditsMarkerGeneration string
|
||||||
@@ -710,21 +585,6 @@ const (
|
|||||||
func (e EnableCreditsMarkerGeneration) ToPointer() *EnableCreditsMarkerGeneration {
|
func (e EnableCreditsMarkerGeneration) ToPointer() *EnableCreditsMarkerGeneration {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *EnableCreditsMarkerGeneration) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "-1":
|
|
||||||
fallthrough
|
|
||||||
case "0":
|
|
||||||
*e = EnableCreditsMarkerGeneration(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for EnableCreditsMarkerGeneration: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ShowOrdering - Setting that indicates the episode ordering for the show.
|
// ShowOrdering - Setting that indicates the episode ordering for the show.
|
||||||
// None = Library default,
|
// None = Library default,
|
||||||
@@ -745,27 +605,6 @@ const (
|
|||||||
func (e ShowOrdering) ToPointer() *ShowOrdering {
|
func (e ShowOrdering) ToPointer() *ShowOrdering {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *ShowOrdering) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "None":
|
|
||||||
fallthrough
|
|
||||||
case "tmdbAiring":
|
|
||||||
fallthrough
|
|
||||||
case "aired":
|
|
||||||
fallthrough
|
|
||||||
case "dvd":
|
|
||||||
fallthrough
|
|
||||||
case "absolute":
|
|
||||||
*e = ShowOrdering(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for ShowOrdering: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetLibraryItemsOptimizedForStreaming int
|
type GetLibraryItemsOptimizedForStreaming int
|
||||||
|
|
||||||
@@ -1652,25 +1491,6 @@ const (
|
|||||||
func (e GetLibraryItemsLibraryResponse200Type) ToPointer() *GetLibraryItemsLibraryResponse200Type {
|
func (e GetLibraryItemsLibraryResponse200Type) ToPointer() *GetLibraryItemsLibraryResponse200Type {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *GetLibraryItemsLibraryResponse200Type) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "coverPoster":
|
|
||||||
fallthrough
|
|
||||||
case "background":
|
|
||||||
fallthrough
|
|
||||||
case "snapshot":
|
|
||||||
fallthrough
|
|
||||||
case "clearLogo":
|
|
||||||
*e = GetLibraryItemsLibraryResponse200Type(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for GetLibraryItemsLibraryResponse200Type: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetLibraryItemsImage struct {
|
type GetLibraryItemsImage struct {
|
||||||
Alt string `json:"alt"`
|
Alt string `json:"alt"`
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
package operations
|
package operations
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
|
||||||
"fmt"
|
|
||||||
"github.com/LukeHagar/plexgo/internal/utils"
|
"github.com/LukeHagar/plexgo/internal/utils"
|
||||||
"github.com/LukeHagar/plexgo/types"
|
"github.com/LukeHagar/plexgo/types"
|
||||||
"net/http"
|
"net/http"
|
||||||
@@ -31,31 +29,6 @@ const (
|
|||||||
func (e GetPlaylistContentsQueryParamType) ToPointer() *GetPlaylistContentsQueryParamType {
|
func (e GetPlaylistContentsQueryParamType) ToPointer() *GetPlaylistContentsQueryParamType {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *GetPlaylistContentsQueryParamType) 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:
|
|
||||||
fallthrough
|
|
||||||
case 8:
|
|
||||||
fallthrough
|
|
||||||
case 9:
|
|
||||||
fallthrough
|
|
||||||
case 10:
|
|
||||||
*e = GetPlaylistContentsQueryParamType(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for GetPlaylistContentsQueryParamType: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetPlaylistContentsRequest struct {
|
type GetPlaylistContentsRequest struct {
|
||||||
// the ID of the playlist
|
// the ID of the playlist
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
package operations
|
package operations
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
|
||||||
"fmt"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -20,23 +18,6 @@ const (
|
|||||||
func (e PlaylistType) ToPointer() *PlaylistType {
|
func (e PlaylistType) ToPointer() *PlaylistType {
|
||||||
return &e
|
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).
|
// QueryParamSmart - type of playlists to return (default is all).
|
||||||
type QueryParamSmart int64
|
type QueryParamSmart int64
|
||||||
@@ -49,21 +30,6 @@ const (
|
|||||||
func (e QueryParamSmart) ToPointer() *QueryParamSmart {
|
func (e QueryParamSmart) ToPointer() *QueryParamSmart {
|
||||||
return &e
|
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 {
|
type GetPlaylistsRequest struct {
|
||||||
// limit to a type of playlist.
|
// limit to a type of playlist.
|
||||||
|
|||||||
@@ -32,31 +32,6 @@ const (
|
|||||||
func (e Type) ToPointer() *Type {
|
func (e Type) ToPointer() *Type {
|
||||||
return &e
|
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:
|
|
||||||
fallthrough
|
|
||||||
case 8:
|
|
||||||
fallthrough
|
|
||||||
case 9:
|
|
||||||
fallthrough
|
|
||||||
case 10:
|
|
||||||
*e = Type(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for Type: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// IncludeMeta - Adds the Meta object to the response
|
// IncludeMeta - Adds the Meta object to the response
|
||||||
type IncludeMeta int
|
type IncludeMeta int
|
||||||
@@ -537,29 +512,6 @@ const (
|
|||||||
func (e GetRecentlyAddedHubsType) ToPointer() *GetRecentlyAddedHubsType {
|
func (e GetRecentlyAddedHubsType) ToPointer() *GetRecentlyAddedHubsType {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *GetRecentlyAddedHubsType) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "movie":
|
|
||||||
fallthrough
|
|
||||||
case "show":
|
|
||||||
fallthrough
|
|
||||||
case "season":
|
|
||||||
fallthrough
|
|
||||||
case "episode":
|
|
||||||
fallthrough
|
|
||||||
case "artist":
|
|
||||||
fallthrough
|
|
||||||
case "album":
|
|
||||||
*e = GetRecentlyAddedHubsType(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for GetRecentlyAddedHubsType: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetRecentlyAddedHubsResponseType string
|
type GetRecentlyAddedHubsResponseType string
|
||||||
|
|
||||||
@@ -573,25 +525,6 @@ const (
|
|||||||
func (e GetRecentlyAddedHubsResponseType) ToPointer() *GetRecentlyAddedHubsResponseType {
|
func (e GetRecentlyAddedHubsResponseType) ToPointer() *GetRecentlyAddedHubsResponseType {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *GetRecentlyAddedHubsResponseType) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "coverPoster":
|
|
||||||
fallthrough
|
|
||||||
case "background":
|
|
||||||
fallthrough
|
|
||||||
case "snapshot":
|
|
||||||
fallthrough
|
|
||||||
case "clearLogo":
|
|
||||||
*e = GetRecentlyAddedHubsResponseType(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for GetRecentlyAddedHubsResponseType: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetRecentlyAddedImage struct {
|
type GetRecentlyAddedImage struct {
|
||||||
Alt string `json:"alt"`
|
Alt string `json:"alt"`
|
||||||
|
|||||||
@@ -31,31 +31,6 @@ const (
|
|||||||
func (e QueryParamType) ToPointer() *QueryParamType {
|
func (e QueryParamType) ToPointer() *QueryParamType {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *QueryParamType) 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:
|
|
||||||
fallthrough
|
|
||||||
case 8:
|
|
||||||
fallthrough
|
|
||||||
case 9:
|
|
||||||
fallthrough
|
|
||||||
case 10:
|
|
||||||
*e = QueryParamType(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for QueryParamType: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryParamIncludeMeta - Adds the Meta object to the response
|
// QueryParamIncludeMeta - Adds the Meta object to the response
|
||||||
type QueryParamIncludeMeta int
|
type QueryParamIncludeMeta int
|
||||||
|
|||||||
@@ -23,27 +23,6 @@ const (
|
|||||||
func (e SearchTypes) ToPointer() *SearchTypes {
|
func (e SearchTypes) ToPointer() *SearchTypes {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *SearchTypes) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "movies":
|
|
||||||
fallthrough
|
|
||||||
case "music":
|
|
||||||
fallthrough
|
|
||||||
case "otherVideos":
|
|
||||||
fallthrough
|
|
||||||
case "people":
|
|
||||||
fallthrough
|
|
||||||
case "tv":
|
|
||||||
*e = SearchTypes(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for SearchTypes: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetSearchAllLibrariesQueryParamIncludeCollections - Whether to include collections in the search results.
|
// GetSearchAllLibrariesQueryParamIncludeCollections - Whether to include collections in the search results.
|
||||||
type GetSearchAllLibrariesQueryParamIncludeCollections int
|
type GetSearchAllLibrariesQueryParamIncludeCollections int
|
||||||
@@ -183,29 +162,6 @@ const (
|
|||||||
func (e GetSearchAllLibrariesType) ToPointer() *GetSearchAllLibrariesType {
|
func (e GetSearchAllLibrariesType) ToPointer() *GetSearchAllLibrariesType {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *GetSearchAllLibrariesType) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "movie":
|
|
||||||
fallthrough
|
|
||||||
case "show":
|
|
||||||
fallthrough
|
|
||||||
case "season":
|
|
||||||
fallthrough
|
|
||||||
case "episode":
|
|
||||||
fallthrough
|
|
||||||
case "artist":
|
|
||||||
fallthrough
|
|
||||||
case "album":
|
|
||||||
*e = GetSearchAllLibrariesType(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for GetSearchAllLibrariesType: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetSearchAllLibrariesFlattenSeasons - Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
// GetSearchAllLibrariesFlattenSeasons - Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
type GetSearchAllLibrariesFlattenSeasons string
|
type GetSearchAllLibrariesFlattenSeasons string
|
||||||
@@ -219,23 +175,6 @@ const (
|
|||||||
func (e GetSearchAllLibrariesFlattenSeasons) ToPointer() *GetSearchAllLibrariesFlattenSeasons {
|
func (e GetSearchAllLibrariesFlattenSeasons) ToPointer() *GetSearchAllLibrariesFlattenSeasons {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *GetSearchAllLibrariesFlattenSeasons) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "-1":
|
|
||||||
fallthrough
|
|
||||||
case "0":
|
|
||||||
fallthrough
|
|
||||||
case "1":
|
|
||||||
*e = GetSearchAllLibrariesFlattenSeasons(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for GetSearchAllLibrariesFlattenSeasons: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetSearchAllLibrariesEpisodeSort - Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
// GetSearchAllLibrariesEpisodeSort - Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
type GetSearchAllLibrariesEpisodeSort string
|
type GetSearchAllLibrariesEpisodeSort string
|
||||||
@@ -249,23 +188,6 @@ const (
|
|||||||
func (e GetSearchAllLibrariesEpisodeSort) ToPointer() *GetSearchAllLibrariesEpisodeSort {
|
func (e GetSearchAllLibrariesEpisodeSort) ToPointer() *GetSearchAllLibrariesEpisodeSort {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *GetSearchAllLibrariesEpisodeSort) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "-1":
|
|
||||||
fallthrough
|
|
||||||
case "0":
|
|
||||||
fallthrough
|
|
||||||
case "1":
|
|
||||||
*e = GetSearchAllLibrariesEpisodeSort(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for GetSearchAllLibrariesEpisodeSort: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetSearchAllLibrariesEnableCreditsMarkerGeneration - Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
// GetSearchAllLibrariesEnableCreditsMarkerGeneration - Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
type GetSearchAllLibrariesEnableCreditsMarkerGeneration string
|
type GetSearchAllLibrariesEnableCreditsMarkerGeneration string
|
||||||
@@ -278,21 +200,6 @@ const (
|
|||||||
func (e GetSearchAllLibrariesEnableCreditsMarkerGeneration) ToPointer() *GetSearchAllLibrariesEnableCreditsMarkerGeneration {
|
func (e GetSearchAllLibrariesEnableCreditsMarkerGeneration) ToPointer() *GetSearchAllLibrariesEnableCreditsMarkerGeneration {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *GetSearchAllLibrariesEnableCreditsMarkerGeneration) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "-1":
|
|
||||||
fallthrough
|
|
||||||
case "0":
|
|
||||||
*e = GetSearchAllLibrariesEnableCreditsMarkerGeneration(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for GetSearchAllLibrariesEnableCreditsMarkerGeneration: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetSearchAllLibrariesShowOrdering - Setting that indicates the episode ordering for the show.
|
// GetSearchAllLibrariesShowOrdering - Setting that indicates the episode ordering for the show.
|
||||||
// None = Library default,
|
// None = Library default,
|
||||||
@@ -313,27 +220,6 @@ const (
|
|||||||
func (e GetSearchAllLibrariesShowOrdering) ToPointer() *GetSearchAllLibrariesShowOrdering {
|
func (e GetSearchAllLibrariesShowOrdering) ToPointer() *GetSearchAllLibrariesShowOrdering {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *GetSearchAllLibrariesShowOrdering) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "None":
|
|
||||||
fallthrough
|
|
||||||
case "tmdbAiring":
|
|
||||||
fallthrough
|
|
||||||
case "aired":
|
|
||||||
fallthrough
|
|
||||||
case "dvd":
|
|
||||||
fallthrough
|
|
||||||
case "absolute":
|
|
||||||
*e = GetSearchAllLibrariesShowOrdering(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for GetSearchAllLibrariesShowOrdering: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetSearchAllLibrariesOptimizedForStreaming int
|
type GetSearchAllLibrariesOptimizedForStreaming int
|
||||||
|
|
||||||
@@ -1220,25 +1106,6 @@ const (
|
|||||||
func (e GetSearchAllLibrariesLibraryType) ToPointer() *GetSearchAllLibrariesLibraryType {
|
func (e GetSearchAllLibrariesLibraryType) ToPointer() *GetSearchAllLibrariesLibraryType {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *GetSearchAllLibrariesLibraryType) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "coverPoster":
|
|
||||||
fallthrough
|
|
||||||
case "background":
|
|
||||||
fallthrough
|
|
||||||
case "snapshot":
|
|
||||||
fallthrough
|
|
||||||
case "clearLogo":
|
|
||||||
*e = GetSearchAllLibrariesLibraryType(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for GetSearchAllLibrariesLibraryType: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetSearchAllLibrariesImage struct {
|
type GetSearchAllLibrariesImage struct {
|
||||||
Alt string `json:"alt"`
|
Alt string `json:"alt"`
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
package operations
|
package operations
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
|
||||||
"fmt"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -29,31 +27,6 @@ const (
|
|||||||
func (e GetSearchLibraryQueryParamType) ToPointer() *GetSearchLibraryQueryParamType {
|
func (e GetSearchLibraryQueryParamType) ToPointer() *GetSearchLibraryQueryParamType {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *GetSearchLibraryQueryParamType) 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:
|
|
||||||
fallthrough
|
|
||||||
case 8:
|
|
||||||
fallthrough
|
|
||||||
case 9:
|
|
||||||
fallthrough
|
|
||||||
case 10:
|
|
||||||
*e = GetSearchLibraryQueryParamType(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for GetSearchLibraryQueryParamType: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetSearchLibraryRequest struct {
|
type GetSearchLibraryRequest struct {
|
||||||
// The unique key of the Plex library.
|
// The unique key of the Plex library.
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
package operations
|
package operations
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
|
||||||
"fmt"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -20,23 +18,6 @@ const (
|
|||||||
func (e State) ToPointer() *State {
|
func (e State) ToPointer() *State {
|
||||||
return &e
|
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 {
|
type GetTimelineRequest struct {
|
||||||
// The rating key of the media item
|
// The rating key of the media item
|
||||||
|
|||||||
@@ -24,21 +24,6 @@ const (
|
|||||||
func (e MailingListStatus) ToPointer() *MailingListStatus {
|
func (e MailingListStatus) ToPointer() *MailingListStatus {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *MailingListStatus) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "active":
|
|
||||||
fallthrough
|
|
||||||
case "unsubscribed":
|
|
||||||
*e = MailingListStatus(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for MailingListStatus: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
// AutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
||||||
type AutoSelectSubtitle int
|
type AutoSelectSubtitle int
|
||||||
@@ -266,21 +251,6 @@ const (
|
|||||||
func (e GetTokenDetailsStatus) ToPointer() *GetTokenDetailsStatus {
|
func (e GetTokenDetailsStatus) ToPointer() *GetTokenDetailsStatus {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *GetTokenDetailsStatus) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "online":
|
|
||||||
fallthrough
|
|
||||||
case "offline":
|
|
||||||
*e = GetTokenDetailsStatus(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for GetTokenDetailsStatus: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
type Services struct {
|
type Services struct {
|
||||||
Identifier string `json:"identifier"`
|
Identifier string `json:"identifier"`
|
||||||
@@ -336,21 +306,6 @@ const (
|
|||||||
func (e GetTokenDetailsAuthenticationStatus) ToPointer() *GetTokenDetailsAuthenticationStatus {
|
func (e GetTokenDetailsAuthenticationStatus) ToPointer() *GetTokenDetailsAuthenticationStatus {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *GetTokenDetailsAuthenticationStatus) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "Inactive":
|
|
||||||
fallthrough
|
|
||||||
case "Active":
|
|
||||||
*e = GetTokenDetailsAuthenticationStatus(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for GetTokenDetailsAuthenticationStatus: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Subscription - If the account’s Plex Pass subscription is active
|
// Subscription - If the account’s Plex Pass subscription is active
|
||||||
type Subscription struct {
|
type Subscription struct {
|
||||||
@@ -421,21 +376,6 @@ const (
|
|||||||
func (e GetTokenDetailsAuthenticationResponseStatus) ToPointer() *GetTokenDetailsAuthenticationResponseStatus {
|
func (e GetTokenDetailsAuthenticationResponseStatus) ToPointer() *GetTokenDetailsAuthenticationResponseStatus {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *GetTokenDetailsAuthenticationResponseStatus) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "Inactive":
|
|
||||||
fallthrough
|
|
||||||
case "Active":
|
|
||||||
*e = GetTokenDetailsAuthenticationResponseStatus(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for GetTokenDetailsAuthenticationResponseStatus: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetTokenDetailsSubscription struct {
|
type GetTokenDetailsSubscription struct {
|
||||||
// List of features allowed on your Plex Pass subscription
|
// List of features allowed on your Plex Pass subscription
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
package operations
|
package operations
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
|
||||||
"fmt"
|
|
||||||
"github.com/LukeHagar/plexgo/internal/utils"
|
"github.com/LukeHagar/plexgo/internal/utils"
|
||||||
"github.com/LukeHagar/plexgo/types"
|
"github.com/LukeHagar/plexgo/types"
|
||||||
"net/http"
|
"net/http"
|
||||||
@@ -31,31 +29,6 @@ const (
|
|||||||
func (e GetTopWatchedContentQueryParamType) ToPointer() *GetTopWatchedContentQueryParamType {
|
func (e GetTopWatchedContentQueryParamType) ToPointer() *GetTopWatchedContentQueryParamType {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *GetTopWatchedContentQueryParamType) 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:
|
|
||||||
fallthrough
|
|
||||||
case 8:
|
|
||||||
fallthrough
|
|
||||||
case 9:
|
|
||||||
fallthrough
|
|
||||||
case 10:
|
|
||||||
*e = GetTopWatchedContentQueryParamType(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for GetTopWatchedContentQueryParamType: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetTopWatchedContentRequest struct {
|
type GetTopWatchedContentRequest struct {
|
||||||
// Adds the Guids object to the response
|
// Adds the Guids object to the response
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
package operations
|
package operations
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
|
||||||
"fmt"
|
|
||||||
"github.com/LukeHagar/plexgo/internal/utils"
|
"github.com/LukeHagar/plexgo/internal/utils"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
@@ -29,19 +27,6 @@ const (
|
|||||||
func (e Status) ToPointer() *Status {
|
func (e Status) ToPointer() *Status {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *Status) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "accepted":
|
|
||||||
*e = Status(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for Status: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
type Friend struct {
|
type Friend struct {
|
||||||
// The account email address
|
// The account email address
|
||||||
|
|||||||
@@ -26,23 +26,6 @@ const (
|
|||||||
func (e Filter) ToPointer() *Filter {
|
func (e Filter) ToPointer() *Filter {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *Filter) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "all":
|
|
||||||
fallthrough
|
|
||||||
case "available":
|
|
||||||
fallthrough
|
|
||||||
case "released":
|
|
||||||
*e = Filter(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for Filter: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Libtype - The type of library to filter. Can be "movie" or "show", or all if not present.
|
// Libtype - The type of library to filter. Can be "movie" or "show", or all if not present.
|
||||||
type Libtype string
|
type Libtype string
|
||||||
@@ -55,21 +38,6 @@ const (
|
|||||||
func (e Libtype) ToPointer() *Libtype {
|
func (e Libtype) ToPointer() *Libtype {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *Libtype) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "movie":
|
|
||||||
fallthrough
|
|
||||||
case "show":
|
|
||||||
*e = Libtype(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for Libtype: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// IncludeCollections - include collections in the results
|
// IncludeCollections - include collections in the results
|
||||||
type IncludeCollections int64
|
type IncludeCollections int64
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
package operations
|
package operations
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
|
||||||
"fmt"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -27,27 +25,6 @@ const (
|
|||||||
func (e Level) ToPointer() *Level {
|
func (e Level) ToPointer() *Level {
|
||||||
return &e
|
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 {
|
type LogLineRequest struct {
|
||||||
// An integer log level to write to the PMS log with.
|
// An integer log level to write to the PMS log with.
|
||||||
|
|||||||
@@ -128,21 +128,6 @@ const (
|
|||||||
func (e PostUsersSignInDataMailingListStatus) ToPointer() *PostUsersSignInDataMailingListStatus {
|
func (e PostUsersSignInDataMailingListStatus) ToPointer() *PostUsersSignInDataMailingListStatus {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *PostUsersSignInDataMailingListStatus) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "active":
|
|
||||||
fallthrough
|
|
||||||
case "unsubscribed":
|
|
||||||
*e = PostUsersSignInDataMailingListStatus(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for PostUsersSignInDataMailingListStatus: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// PostUsersSignInDataAutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
// PostUsersSignInDataAutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
||||||
type PostUsersSignInDataAutoSelectSubtitle int
|
type PostUsersSignInDataAutoSelectSubtitle int
|
||||||
@@ -370,21 +355,6 @@ const (
|
|||||||
func (e PostUsersSignInDataStatus) ToPointer() *PostUsersSignInDataStatus {
|
func (e PostUsersSignInDataStatus) ToPointer() *PostUsersSignInDataStatus {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *PostUsersSignInDataStatus) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "online":
|
|
||||||
fallthrough
|
|
||||||
case "offline":
|
|
||||||
*e = PostUsersSignInDataStatus(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for PostUsersSignInDataStatus: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
type PostUsersSignInDataServices struct {
|
type PostUsersSignInDataServices struct {
|
||||||
Identifier string `json:"identifier"`
|
Identifier string `json:"identifier"`
|
||||||
@@ -440,21 +410,6 @@ const (
|
|||||||
func (e PostUsersSignInDataAuthenticationStatus) ToPointer() *PostUsersSignInDataAuthenticationStatus {
|
func (e PostUsersSignInDataAuthenticationStatus) ToPointer() *PostUsersSignInDataAuthenticationStatus {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *PostUsersSignInDataAuthenticationStatus) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "Inactive":
|
|
||||||
fallthrough
|
|
||||||
case "Active":
|
|
||||||
*e = PostUsersSignInDataAuthenticationStatus(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for PostUsersSignInDataAuthenticationStatus: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// PostUsersSignInDataSubscription - If the account’s Plex Pass subscription is active
|
// PostUsersSignInDataSubscription - If the account’s Plex Pass subscription is active
|
||||||
type PostUsersSignInDataSubscription struct {
|
type PostUsersSignInDataSubscription struct {
|
||||||
@@ -525,21 +480,6 @@ const (
|
|||||||
func (e PostUsersSignInDataAuthenticationResponseStatus) ToPointer() *PostUsersSignInDataAuthenticationResponseStatus {
|
func (e PostUsersSignInDataAuthenticationResponseStatus) ToPointer() *PostUsersSignInDataAuthenticationResponseStatus {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *PostUsersSignInDataAuthenticationResponseStatus) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "Inactive":
|
|
||||||
fallthrough
|
|
||||||
case "Active":
|
|
||||||
*e = PostUsersSignInDataAuthenticationResponseStatus(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for PostUsersSignInDataAuthenticationResponseStatus: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
type PostUsersSignInDataAuthenticationSubscription struct {
|
type PostUsersSignInDataAuthenticationSubscription struct {
|
||||||
// List of features allowed on your Plex Pass subscription
|
// List of features allowed on your Plex Pass subscription
|
||||||
@@ -607,19 +547,6 @@ const (
|
|||||||
func (e PostUsersSignInDataState) ToPointer() *PostUsersSignInDataState {
|
func (e PostUsersSignInDataState) ToPointer() *PostUsersSignInDataState {
|
||||||
return &e
|
return &e
|
||||||
}
|
}
|
||||||
func (e *PostUsersSignInDataState) UnmarshalJSON(data []byte) error {
|
|
||||||
var v string
|
|
||||||
if err := json.Unmarshal(data, &v); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
switch v {
|
|
||||||
case "ended":
|
|
||||||
*e = PostUsersSignInDataState(v)
|
|
||||||
return nil
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("invalid value for PostUsersSignInDataState: %v", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
type InternalPaymentMethod struct {
|
type InternalPaymentMethod struct {
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
package operations
|
package operations
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
|
||||||
"fmt"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -31,45 +29,6 @@ const (
|
|||||||
func (e TaskName) ToPointer() *TaskName {
|
func (e TaskName) ToPointer() *TaskName {
|
||||||
return &e
|
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 {
|
type StartTaskRequest struct {
|
||||||
// the name of the task to be started.
|
// the name of the task to be started.
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
package operations
|
package operations
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
|
||||||
"fmt"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -31,45 +29,6 @@ const (
|
|||||||
func (e PathParamTaskName) ToPointer() *PathParamTaskName {
|
func (e PathParamTaskName) ToPointer() *PathParamTaskName {
|
||||||
return &e
|
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 {
|
type StopTaskRequest struct {
|
||||||
// The name of the task to be started.
|
// The name of the task to be started.
|
||||||
|
|||||||
@@ -299,9 +299,9 @@ func New(opts ...SDKOption) *PlexAPI {
|
|||||||
sdkConfiguration: sdkConfiguration{
|
sdkConfiguration: sdkConfiguration{
|
||||||
Language: "go",
|
Language: "go",
|
||||||
OpenAPIDocVersion: "0.0.3",
|
OpenAPIDocVersion: "0.0.3",
|
||||||
SDKVersion: "0.20.2",
|
SDKVersion: "0.21.0",
|
||||||
GenVersion: "2.570.4",
|
GenVersion: "2.585.2",
|
||||||
UserAgent: "speakeasy-sdk/go 0.20.2 2.570.4 0.0.3 github.com/LukeHagar/plexgo",
|
UserAgent: "speakeasy-sdk/go 0.21.0 2.585.2 0.0.3 github.com/LukeHagar/plexgo",
|
||||||
ServerDefaults: []map[string]string{
|
ServerDefaults: []map[string]string{
|
||||||
{
|
{
|
||||||
"protocol": "https",
|
"protocol": "https",
|
||||||
|
|||||||
Reference in New Issue
Block a user