mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-06 12:37:46 +00:00
ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.161.0
This commit is contained in:
@@ -4,9 +4,9 @@ management:
|
||||
docChecksum: 94439465ae5d544f0e52b00719af05ee
|
||||
docVersion: 0.0.3
|
||||
speakeasyVersion: internal
|
||||
generationVersion: 2.239.4
|
||||
releaseVersion: 0.2.0
|
||||
configChecksum: cab54fc8ee2784bf822df0198252c4f5
|
||||
generationVersion: 2.245.1
|
||||
releaseVersion: 0.2.1
|
||||
configChecksum: 0c6f5f0bce6af6f3bd99f99ce9584d7e
|
||||
repoURL: https://github.com/LukeHagar/plexgo.git
|
||||
repoSubDirectory: .
|
||||
installationURL: https://github.com/LukeHagar/plexgo
|
||||
@@ -16,7 +16,7 @@ features:
|
||||
constsAndDefaults: 0.1.2
|
||||
core: 3.3.1
|
||||
flattening: 2.81.1
|
||||
globalSecurity: 2.82.4
|
||||
globalSecurity: 2.82.5
|
||||
globalServerURLs: 2.82.1
|
||||
methodServerURLs: 2.82.1
|
||||
nameOverrides: 2.81.1
|
||||
|
||||
12
RELEASES.md
12
RELEASES.md
@@ -98,4 +98,14 @@ Based on:
|
||||
### Generated
|
||||
- [go v0.2.0] .
|
||||
### 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:
|
||||
nameResolutionDec2023: false
|
||||
go:
|
||||
version: 0.2.0
|
||||
version: 0.2.1
|
||||
clientServerStatusCodesAsErrors: true
|
||||
flattenGlobalSecurity: true
|
||||
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 {
|
||||
return func(sdk *PlexAPI) {
|
||||
sdk.sdkConfiguration.RetryConfig = &retryConfig
|
||||
@@ -252,9 +261,9 @@ func New(opts ...SDKOption) *PlexAPI {
|
||||
sdkConfiguration: sdkConfiguration{
|
||||
Language: "go",
|
||||
OpenAPIDocVersion: "0.0.3",
|
||||
SDKVersion: "0.2.0",
|
||||
GenVersion: "2.239.4",
|
||||
UserAgent: "speakeasy-sdk/go 0.2.0 2.239.4 0.0.3 github.com/LukeHagar/plexgo",
|
||||
SDKVersion: "0.2.1",
|
||||
GenVersion: "2.245.1",
|
||||
UserAgent: "speakeasy-sdk/go 0.2.1 2.245.1 0.0.3 github.com/LukeHagar/plexgo",
|
||||
ServerDefaults: []map[string]string{
|
||||
{
|
||||
"protocol": "http",
|
||||
|
||||
Reference in New Issue
Block a user