ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.406.0

This commit is contained in:
speakeasybot
2024-10-03 00:10:47 +00:00
parent 636840a553
commit dc815780a6
128 changed files with 5089 additions and 2452 deletions

View File

@@ -10,6 +10,7 @@ import (
"github.com/LukeHagar/plexgo/internal/utils"
"github.com/LukeHagar/plexgo/models/operations"
"github.com/LukeHagar/plexgo/models/sdkerrors"
"github.com/LukeHagar/plexgo/retry"
"github.com/cenkalti/backoff/v4"
"io"
"net/http"
@@ -82,6 +83,16 @@ func (s *Butler) GetButlerTasks(ctx context.Context, opts ...operations.Option)
if retryConfig == nil {
if globalRetryConfig != nil {
retryConfig = globalRetryConfig
} else {
retryConfig = &retry.Config{
Strategy: "backoff", Backoff: &retry.BackoffStrategy{
InitialInterval: 500,
MaxInterval: 60000,
Exponent: 1.5,
MaxElapsedTime: 3600000,
},
RetryConnectionErrors: true,
}
}
}
@@ -90,11 +101,7 @@ func (s *Butler) GetButlerTasks(ctx context.Context, opts ...operations.Option)
httpRes, err = utils.Retry(ctx, utils.Retries{
Config: retryConfig,
StatusCodes: []string{
"429",
"500",
"502",
"503",
"504",
"5XX",
},
}, func() (*http.Response, error) {
if req.Body != nil {
@@ -328,6 +335,16 @@ func (s *Butler) StartAllTasks(ctx context.Context, opts ...operations.Option) (
if retryConfig == nil {
if globalRetryConfig != nil {
retryConfig = globalRetryConfig
} else {
retryConfig = &retry.Config{
Strategy: "backoff", Backoff: &retry.BackoffStrategy{
InitialInterval: 500,
MaxInterval: 60000,
Exponent: 1.5,
MaxElapsedTime: 3600000,
},
RetryConnectionErrors: true,
}
}
}
@@ -336,11 +353,7 @@ func (s *Butler) StartAllTasks(ctx context.Context, opts ...operations.Option) (
httpRes, err = utils.Retry(ctx, utils.Retries{
Config: retryConfig,
StatusCodes: []string{
"429",
"500",
"502",
"503",
"504",
"5XX",
},
}, func() (*http.Response, error) {
if req.Body != nil {
@@ -549,6 +562,16 @@ func (s *Butler) StopAllTasks(ctx context.Context, opts ...operations.Option) (*
if retryConfig == nil {
if globalRetryConfig != nil {
retryConfig = globalRetryConfig
} else {
retryConfig = &retry.Config{
Strategy: "backoff", Backoff: &retry.BackoffStrategy{
InitialInterval: 500,
MaxInterval: 60000,
Exponent: 1.5,
MaxElapsedTime: 3600000,
},
RetryConnectionErrors: true,
}
}
}
@@ -557,11 +580,7 @@ func (s *Butler) StopAllTasks(ctx context.Context, opts ...operations.Option) (*
httpRes, err = utils.Retry(ctx, utils.Retries{
Config: retryConfig,
StatusCodes: []string{
"429",
"500",
"502",
"503",
"504",
"5XX",
},
}, func() (*http.Response, error) {
if req.Body != nil {
@@ -778,6 +797,16 @@ func (s *Butler) StartTask(ctx context.Context, taskName operations.TaskName, op
if retryConfig == nil {
if globalRetryConfig != nil {
retryConfig = globalRetryConfig
} else {
retryConfig = &retry.Config{
Strategy: "backoff", Backoff: &retry.BackoffStrategy{
InitialInterval: 500,
MaxInterval: 60000,
Exponent: 1.5,
MaxElapsedTime: 3600000,
},
RetryConnectionErrors: true,
}
}
}
@@ -786,11 +815,7 @@ func (s *Butler) StartTask(ctx context.Context, taskName operations.TaskName, op
httpRes, err = utils.Retry(ctx, utils.Retries{
Config: retryConfig,
StatusCodes: []string{
"429",
"500",
"502",
"503",
"504",
"5XX",
},
}, func() (*http.Response, error) {
if req.Body != nil {
@@ -1005,6 +1030,16 @@ func (s *Butler) StopTask(ctx context.Context, taskName operations.PathParamTask
if retryConfig == nil {
if globalRetryConfig != nil {
retryConfig = globalRetryConfig
} else {
retryConfig = &retry.Config{
Strategy: "backoff", Backoff: &retry.BackoffStrategy{
InitialInterval: 500,
MaxInterval: 60000,
Exponent: 1.5,
MaxElapsedTime: 3600000,
},
RetryConnectionErrors: true,
}
}
}
@@ -1013,11 +1048,7 @@ func (s *Butler) StopTask(ctx context.Context, taskName operations.PathParamTask
httpRes, err = utils.Retry(ctx, utils.Retries{
Config: retryConfig,
StatusCodes: []string{
"429",
"500",
"502",
"503",
"504",
"5XX",
},
}, func() (*http.Response, error) {
if req.Body != nil {