mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-06 04:20:46 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.531.4
This commit is contained in:
@@ -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: 184db864cffee563d43aae06915b9671
|
docChecksum: fa4c9c5c23680ad02fdbe831ad9d2403
|
||||||
docVersion: 0.0.3
|
docVersion: 0.0.3
|
||||||
speakeasyVersion: 1.529.1
|
speakeasyVersion: 1.531.4
|
||||||
generationVersion: 2.566.5
|
generationVersion: 2.570.4
|
||||||
releaseVersion: 0.20.1
|
releaseVersion: 0.20.2
|
||||||
configChecksum: 6b459cac508d9817dc4a3e6838c1d331
|
configChecksum: da09b9fb064187056564b4426f7aa2d0
|
||||||
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
|
||||||
@@ -14,8 +14,8 @@ management:
|
|||||||
features:
|
features:
|
||||||
go:
|
go:
|
||||||
additionalDependencies: 0.1.0
|
additionalDependencies: 0.1.0
|
||||||
constsAndDefaults: 0.1.11
|
constsAndDefaults: 0.1.12
|
||||||
core: 3.7.3
|
core: 3.7.4
|
||||||
defaultEnabledRetries: 0.2.0
|
defaultEnabledRetries: 0.2.0
|
||||||
deprecations: 2.81.3
|
deprecations: 2.81.3
|
||||||
downloadStreams: 0.1.2
|
downloadStreams: 0.1.2
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ generation:
|
|||||||
oAuth2ClientCredentialsEnabled: true
|
oAuth2ClientCredentialsEnabled: true
|
||||||
oAuth2PasswordEnabled: false
|
oAuth2PasswordEnabled: false
|
||||||
go:
|
go:
|
||||||
version: 0.20.1
|
version: 0.20.2
|
||||||
additionalDependencies: {}
|
additionalDependencies: {}
|
||||||
allowUnknownFieldsInWeakUnions: false
|
allowUnknownFieldsInWeakUnions: false
|
||||||
clientServerStatusCodesAsErrors: true
|
clientServerStatusCodesAsErrors: true
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
speakeasyVersion: 1.529.1
|
speakeasyVersion: 1.531.4
|
||||||
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:ea508e3da23b283f47aeb4384d6b3ab374a27bdffb8d8d8376cedbad3ad77a06
|
sourceRevisionDigest: sha256:db75a06885b897418dcb580679b5f744348573ad317155172346d32442420e5e
|
||||||
sourceBlobDigest: sha256:c210adbd02b0213b9e6f95ffc27f60ec38f8f9040137d55ccf2b650d92ab0ff5
|
sourceBlobDigest: sha256:ac0a3c3a6df002378b3522325c2330ba4309fbbbfa503a04b8267398f20033f5
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- speakeasy-sdk-regen-1743984636
|
- speakeasy-sdk-regen-1744675819
|
||||||
targets:
|
targets:
|
||||||
plexgo:
|
plexgo:
|
||||||
source: plexapi
|
source: plexapi
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:ea508e3da23b283f47aeb4384d6b3ab374a27bdffb8d8d8376cedbad3ad77a06
|
sourceRevisionDigest: sha256:db75a06885b897418dcb580679b5f744348573ad317155172346d32442420e5e
|
||||||
sourceBlobDigest: sha256:c210adbd02b0213b9e6f95ffc27f60ec38f8f9040137d55ccf2b650d92ab0ff5
|
sourceBlobDigest: sha256:ac0a3c3a6df002378b3522325c2330ba4309fbbbfa503a04b8267398f20033f5
|
||||||
codeSamplesNamespace: code-samples-go-plexgo
|
codeSamplesNamespace: code-samples-go-plexgo
|
||||||
codeSamplesRevisionDigest: sha256:ef5bb03310bad5411cc93a8368bd70b3decee2a407df1bdaab1edd61cd96c5ad
|
codeSamplesRevisionDigest: sha256:36a583178379fbac0c0950fc49c672f2a422d773e8d969201d20c5c1e2215687
|
||||||
workflow:
|
workflow:
|
||||||
workflowVersion: 1.0.0
|
workflowVersion: 1.0.0
|
||||||
speakeasyVersion: latest
|
speakeasyVersion: latest
|
||||||
|
|||||||
10
RELEASES.md
10
RELEASES.md
@@ -1103,3 +1103,13 @@ Based on:
|
|||||||
- [go v0.20.1] .
|
- [go v0.20.1] .
|
||||||
### Releases
|
### Releases
|
||||||
- [Go v0.20.1] https://github.com/LukeHagar/plexgo/releases/tag/v0.20.1 - .
|
- [Go v0.20.1] https://github.com/LukeHagar/plexgo/releases/tag/v0.20.1 - .
|
||||||
|
|
||||||
|
## 2025-04-15 00:10:03
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.531.4 (2.570.4) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [go v0.20.2] .
|
||||||
|
### Releases
|
||||||
|
- [Go v0.20.2] https://github.com/LukeHagar/plexgo/releases/tag/v0.20.2 - .
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
| `AllowSync` | *bool* | :heavy_check_mark: | Indicates whether syncing is allowed. | false |
|
| `AllowSync` | *bool* | :heavy_check_mark: | Indicates whether syncing is allowed. | false |
|
||||||
| `Art` | *string* | :heavy_check_mark: | URL for the background artwork of the media container. | /:/resources/show-fanart.jpg |
|
| `Art` | *string* | :heavy_check_mark: | URL for the background artwork of the media container. | /:/resources/show-fanart.jpg |
|
||||||
| `Composite` | *string* | :heavy_check_mark: | The relative path to the composite media item. | /library/sections/1/composite/1743824484 |
|
| `Composite` | *string* | :heavy_check_mark: | The relative path to the composite media item. | /library/sections/1/composite/1743824484 |
|
||||||
@@ -23,6 +23,6 @@
|
|||||||
| `ScannedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
|
| `ScannedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
|
||||||
| `Content` | *bool* | :heavy_check_mark: | UNKNOWN | true |
|
| `Content` | *bool* | :heavy_check_mark: | UNKNOWN | true |
|
||||||
| `Directory` | *bool* | :heavy_check_mark: | UNKNOWN | true |
|
| `Directory` | *bool* | :heavy_check_mark: | UNKNOWN | true |
|
||||||
| `ContentChangedAt` | *int* | :heavy_check_mark: | The number of seconds since the content was last changed relative to now. | 9173960 |
|
| `ContentChangedAt` | *int64* | :heavy_check_mark: | Timestamp (in seconds) representing the last time the content was modified.<br/>NOTE: Some Plex server have some absurd values for this field, like 8457612157633039800 so it should be int64<br/> | 9173960 |
|
||||||
| `Hidden` | [*operations.Hidden](../../models/operations/hidden.md) | :heavy_minus_sign: | N/A | 1 |
|
| `Hidden` | [*operations.Hidden](../../models/operations/hidden.md) | :heavy_minus_sign: | N/A | 1 |
|
||||||
| `Location` | [][operations.GetAllLibrariesLocation](../../models/operations/getalllibrarieslocation.md) | :heavy_check_mark: | N/A | |
|
| `Location` | [][operations.GetAllLibrariesLocation](../../models/operations/getalllibrarieslocation.md) | :heavy_check_mark: | N/A | |
|
||||||
@@ -186,8 +186,8 @@ func UnmarshalJSON(b []byte, v interface{}, tag reflect.StructTag, topLevel bool
|
|||||||
|
|
||||||
value, ok := unmarhsaled[fieldName]
|
value, ok := unmarhsaled[fieldName]
|
||||||
if !ok {
|
if !ok {
|
||||||
defaultTag := field.Tag.Get("default")
|
defaultTag, defaultOk := field.Tag.Lookup("default")
|
||||||
if defaultTag != "" {
|
if defaultOk {
|
||||||
value = handleDefaultConstValue(defaultTag, fieldVal.Interface(), field.Tag)
|
value = handleDefaultConstValue(defaultTag, fieldVal.Interface(), field.Tag)
|
||||||
ok = true
|
ok = true
|
||||||
}
|
}
|
||||||
@@ -257,8 +257,8 @@ func marshalValue(v interface{}, tag reflect.StructTag) (json.RawMessage, error)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if isNil(reflect.TypeOf(v), reflect.ValueOf(v)) {
|
if isNil(reflect.TypeOf(v), reflect.ValueOf(v)) {
|
||||||
defaultTag := tag.Get("default")
|
defaultTag, ok := tag.Lookup("default")
|
||||||
if defaultTag != "" {
|
if ok {
|
||||||
return handleDefaultConstValue(defaultTag, v, tag), nil
|
return handleDefaultConstValue(defaultTag, v, tag), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -131,8 +131,10 @@ type GetAllLibrariesDirectory struct {
|
|||||||
Content bool `json:"content"`
|
Content bool `json:"content"`
|
||||||
// UNKNOWN
|
// UNKNOWN
|
||||||
Directory bool `json:"directory"`
|
Directory bool `json:"directory"`
|
||||||
// The number of seconds since the content was last changed relative to now.
|
// Timestamp (in seconds) representing the last time the content was modified.
|
||||||
ContentChangedAt int `json:"contentChangedAt"`
|
// NOTE: Some Plex server have some absurd values for this field, like 8457612157633039800 so it should be int64
|
||||||
|
//
|
||||||
|
ContentChangedAt int64 `json:"contentChangedAt"`
|
||||||
Hidden *Hidden `default:"0" json:"hidden"`
|
Hidden *Hidden `default:"0" json:"hidden"`
|
||||||
Location []GetAllLibrariesLocation `json:"Location"`
|
Location []GetAllLibrariesLocation `json:"Location"`
|
||||||
}
|
}
|
||||||
@@ -274,7 +276,7 @@ func (o *GetAllLibrariesDirectory) GetDirectory() bool {
|
|||||||
return o.Directory
|
return o.Directory
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetAllLibrariesDirectory) GetContentChangedAt() int {
|
func (o *GetAllLibrariesDirectory) GetContentChangedAt() int64 {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import (
|
|||||||
// ServerList contains the list of servers available to the SDK
|
// ServerList contains the list of servers available to the SDK
|
||||||
var ServerList = []string{
|
var ServerList = []string{
|
||||||
// The full address of your Plex Server
|
// The full address of your Plex Server
|
||||||
"{protocol}://{ip}:{port}",
|
"https://10.10.10.47:32400",
|
||||||
}
|
}
|
||||||
|
|
||||||
// HTTPClient provides an interface for suplying the SDK with a custom HTTP client
|
// HTTPClient provides an interface for suplying the SDK with a custom HTTP client
|
||||||
@@ -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.1",
|
SDKVersion: "0.20.2",
|
||||||
GenVersion: "2.566.5",
|
GenVersion: "2.570.4",
|
||||||
UserAgent: "speakeasy-sdk/go 0.20.1 2.566.5 0.0.3 github.com/LukeHagar/plexgo",
|
UserAgent: "speakeasy-sdk/go 0.20.2 2.570.4 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