ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.406.0

This commit is contained in:
speakeasybot
2024-10-04 00:10:38 +00:00
parent dc815780a6
commit aeebf438e1
29 changed files with 432 additions and 900 deletions

View File

@@ -10,7 +10,6 @@ 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"
@@ -89,16 +88,6 @@ func (s *Activities) GetServerActivities(ctx context.Context, opts ...operations
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,
}
}
}
@@ -107,7 +96,11 @@ func (s *Activities) GetServerActivities(ctx context.Context, opts ...operations
httpRes, err = utils.Retry(ctx, utils.Retries{
Config: retryConfig,
StatusCodes: []string{
"5XX",
"429",
"500",
"502",
"503",
"504",
},
}, func() (*http.Response, error) {
if req.Body != nil {
@@ -341,16 +334,6 @@ func (s *Activities) CancelServerActivities(ctx context.Context, activityUUID st
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,
}
}
}
@@ -359,7 +342,11 @@ func (s *Activities) CancelServerActivities(ctx context.Context, activityUUID st
httpRes, err = utils.Retry(ctx, utils.Retries{
Config: retryConfig,
StatusCodes: []string{
"5XX",
"429",
"500",
"502",
"503",
"504",
},
}, func() (*http.Response, error) {
if req.Body != nil {