mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-07 20:47:49 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
264d228db7 |
@@ -4,9 +4,9 @@ management:
|
|||||||
docChecksum: 94439465ae5d544f0e52b00719af05ee
|
docChecksum: 94439465ae5d544f0e52b00719af05ee
|
||||||
docVersion: 0.0.3
|
docVersion: 0.0.3
|
||||||
speakeasyVersion: internal
|
speakeasyVersion: internal
|
||||||
generationVersion: 2.239.4
|
generationVersion: 2.245.1
|
||||||
releaseVersion: 0.2.0
|
releaseVersion: 0.2.1
|
||||||
configChecksum: cab54fc8ee2784bf822df0198252c4f5
|
configChecksum: 0c6f5f0bce6af6f3bd99f99ce9584d7e
|
||||||
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
|
||||||
@@ -16,7 +16,7 @@ features:
|
|||||||
constsAndDefaults: 0.1.2
|
constsAndDefaults: 0.1.2
|
||||||
core: 3.3.1
|
core: 3.3.1
|
||||||
flattening: 2.81.1
|
flattening: 2.81.1
|
||||||
globalSecurity: 2.82.4
|
globalSecurity: 2.82.5
|
||||||
globalServerURLs: 2.82.1
|
globalServerURLs: 2.82.1
|
||||||
methodServerURLs: 2.82.1
|
methodServerURLs: 2.82.1
|
||||||
nameOverrides: 2.81.1
|
nameOverrides: 2.81.1
|
||||||
|
|||||||
10
RELEASES.md
10
RELEASES.md
@@ -99,3 +99,13 @@ Based on:
|
|||||||
- [go v0.2.0] .
|
- [go v0.2.0] .
|
||||||
### Releases
|
### Releases
|
||||||
- [Go v0.2.0] https://github.com/LukeHagar/plexgo/releases/tag/v0.2.0 - .
|
- [Go v0.2.0] https://github.com/LukeHagar/plexgo/releases/tag/v0.2.0 - .
|
||||||
|
|
||||||
|
## 2024-02-01 00:46:46
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc 0.0.3
|
||||||
|
- Speakeasy CLI 1.161.0 (2.245.1) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [go v0.2.1] .
|
||||||
|
### Releases
|
||||||
|
- [Go v0.2.1] https://github.com/LukeHagar/plexgo/releases/tag/v0.2.1 - .
|
||||||
2
gen.yaml
2
gen.yaml
@@ -8,7 +8,7 @@ generation:
|
|||||||
fixes:
|
fixes:
|
||||||
nameResolutionDec2023: false
|
nameResolutionDec2023: false
|
||||||
go:
|
go:
|
||||||
version: 0.2.0
|
version: 0.2.1
|
||||||
clientServerStatusCodesAsErrors: true
|
clientServerStatusCodesAsErrors: true
|
||||||
flattenGlobalSecurity: true
|
flattenGlobalSecurity: true
|
||||||
imports:
|
imports:
|
||||||
|
|||||||
15
plexapi.go
15
plexapi.go
@@ -240,6 +240,15 @@ func WithSecurity(accessToken string) SDKOption {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WithSecuritySource configures the SDK to invoke the Security Source function on each method call to determine authentication
|
||||||
|
func WithSecuritySource(security func(context.Context) (components.Security, error)) SDKOption {
|
||||||
|
return func(sdk *PlexAPI) {
|
||||||
|
sdk.sdkConfiguration.Security = func(ctx context.Context) (interface{}, error) {
|
||||||
|
return security(ctx)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func WithRetryConfig(retryConfig utils.RetryConfig) SDKOption {
|
func WithRetryConfig(retryConfig utils.RetryConfig) SDKOption {
|
||||||
return func(sdk *PlexAPI) {
|
return func(sdk *PlexAPI) {
|
||||||
sdk.sdkConfiguration.RetryConfig = &retryConfig
|
sdk.sdkConfiguration.RetryConfig = &retryConfig
|
||||||
@@ -252,9 +261,9 @@ func New(opts ...SDKOption) *PlexAPI {
|
|||||||
sdkConfiguration: sdkConfiguration{
|
sdkConfiguration: sdkConfiguration{
|
||||||
Language: "go",
|
Language: "go",
|
||||||
OpenAPIDocVersion: "0.0.3",
|
OpenAPIDocVersion: "0.0.3",
|
||||||
SDKVersion: "0.2.0",
|
SDKVersion: "0.2.1",
|
||||||
GenVersion: "2.239.4",
|
GenVersion: "2.245.1",
|
||||||
UserAgent: "speakeasy-sdk/go 0.2.0 2.239.4 0.0.3 github.com/LukeHagar/plexgo",
|
UserAgent: "speakeasy-sdk/go 0.2.1 2.245.1 0.0.3 github.com/LukeHagar/plexgo",
|
||||||
ServerDefaults: []map[string]string{
|
ServerDefaults: []map[string]string{
|
||||||
{
|
{
|
||||||
"protocol": "http",
|
"protocol": "http",
|
||||||
|
|||||||
Reference in New Issue
Block a user