ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.228.1

This commit is contained in:
speakeasybot
2024-03-29 16:37:48 +00:00
parent 64d63e5f09
commit 6b55465994
24 changed files with 128 additions and 66 deletions

View File

@@ -53,6 +53,7 @@ type sdkConfiguration struct {
SDKVersion string
GenVersion string
UserAgent string
Globals map[string]map[string]map[string]interface{}
RetryConfig *utils.RetryConfig
Hooks *hooks.Hooks
}
@@ -254,6 +255,17 @@ func WithSecuritySource(security func(context.Context) (shared.Security, error))
}
}
// WithXPlexClientIdentifier allows setting the XPlexClientIdentifier parameter for all supported operations
func WithXPlexClientIdentifier(xPlexClientIdentifier string) SDKOption {
return func(sdk *PlexAPI) {
if _, ok := sdk.sdkConfiguration.Globals["parameters"]["header"]; !ok {
sdk.sdkConfiguration.Globals["parameters"]["header"] = map[string]interface{}{}
}
sdk.sdkConfiguration.Globals["parameters"]["header"]["XPlexClientIdentifier"] = xPlexClientIdentifier
}
}
func WithRetryConfig(retryConfig utils.RetryConfig) SDKOption {
return func(sdk *PlexAPI) {
sdk.sdkConfiguration.RetryConfig = &retryConfig
@@ -267,8 +279,11 @@ func New(opts ...SDKOption) *PlexAPI {
Language: "go",
OpenAPIDocVersion: "0.0.3",
SDKVersion: "0.0.1",
GenVersion: "2.291.0",
UserAgent: "speakeasy-sdk/go 0.0.1 2.291.0 0.0.3 github.com/LukeHagar/terraform-provider-PlexAPI/internal/sdk",
GenVersion: "2.292.0",
UserAgent: "speakeasy-sdk/go 0.0.1 2.292.0 0.0.3 github.com/LukeHagar/terraform-provider-PlexAPI/internal/sdk",
Globals: map[string]map[string]map[string]interface{}{
"parameters": {},
},
ServerDefaults: []map[string]string{
{
"protocol": "http",